title: Java multiple input, and display in order
body: <p>I need a Java program that asks for the names of three runners and the time, in minutes, it took each of them to finish a race. Display the names of the runners in the order they finished.  </p>
  
  <pre><code>     String name1=" ", name2= " ", name3=" ";
       String fast= " ", mid= " ", slow= " ";
       double faster=0, middle=0, slower=0;
       double time1 =0, time2=0, time3=0;
  
       Scanner kb = new Scanner(System.in);
  
  
           System.out.println("Enter the name of the runner: ");
           name1 = kb.nextLine();
           System.out.println("Enter the time of the runner "+ 
                      "took to finish the race (minutes): ");
           time1 = kb.nextDouble();
  
           System.out.println("Enter the name of the runner: ");
           name2 = kb.nextLine();
  
           System.out.println("Enter the time of the runner "+ 
                      "took to finish the race (minutes): ");
           time2 = kb.nextDouble();
  
           System.out.println("Enter the name of the runner: ");
           name3 = kb.nextLine();
  
           System.out.println("Enter the time of the runner "+ 
                      "took to finish the race (minutes): ");
           time3 = kb.nextDouble();
  
  
  
  
  
       if (time1 &lt; time2 &amp;&amp; time1&lt; time3)
       {
           time1= faster;
           name1 = fast;
           if (time2&lt;time3)
           {
               time2=middle;
               name2=mid;
               time3=slower;
               name3=slow;
           }
           else
           {
               time2 = slower;
               name2=slow;
               time3= middle;
               name3 = mid;
           }
       }
        if (time2 &lt; time3 &amp;&amp; time2&lt; time1)
       {
           time2= faster;
           name2 = fast;
           if (time1&lt;time3)
           {
               time1=middle;
               name1=mid;
               time3=slower;
               name3=slow;
           }
           else
           {
               time1 = slower;
               name1=slow;
               time3= middle;
               name3 = mid;
           }
       }
         if (time3 &lt; time2 &amp;&amp; time3&lt; time1)
       {
           time3= faster;
           name3 = fast;
           if (time2&lt;time1)
           {
               time2=middle;
               name2=mid;
               time1=slower;
               name1=slow;
           }
           else
           {
               time2 = slower;
               name2=slow;
               time1= middle;
               name1 = mid;
           }
       }
  
         System.out.printf("\n%10s",fast);
         System.out.println("\n%10s",mid);
         System.out.println("\n%10s",slow);
  
         System.exit(0);
  </code></pre>
  
  <p>So far this is all I have, but I know I did it wrong, can any help me?</p>