title: Display three non-negative integers in increasing order
body: <p>Prompt the user to type in three non-negative integers. Display the integers in an increasing order.</p>
  
  <pre><code>import java.util.Scanner;
  
  {
      int number1,number2,number3;
           Scanner keyboard = new Scanner (System.in);
           number1=keyboard.nextInt();
           number2=keyboard.nextInt();
           number3=keyboard.nextInt();
  
          if(number1&lt;number2&amp;&amp;number1&lt;number3&amp;&amp;number2&lt;number3)
          {
              System.out.println(number1);
              System.out.println(number2);
              System.out.println(number3);
          }
  
          else if(number1&gt;number2&amp;&amp;number1&gt;number3&amp;&amp;number2&gt;number3)
          {
              System.out.println(number3);
              System.out.println(number2);
              System.out.println(number1);
          }
  
          else if(number1&lt;number2&amp;&amp;number1&lt;number3&amp;&amp;number2&gt;number3)
          {
              System.out.println(number1);
              System.out.println(number3);
              System.out.println(number2);
          }
  
          else if(number2&gt;number1&amp;&amp;number2&gt;number3&amp;&amp;number1&gt;number3)
          {
              System.out.println(number3);
              System.out.println(number1);
              System.out.println(number2);
          }
  
          else if (number3&gt;number1&amp;&amp;number3&gt;2&amp;&amp;number1&gt;number2)
          {
              System.out.println(number2);
              System.out.println(number1);
              System.out.println(number3);
          }
  </code></pre>
  
  <p>Output:</p>
  
  <p>2
  1
  3</p>
  
  <p>1
  2
  3</p>
  
  <p>P.S. I am not allowed to use while  statement, swing and for. I am newbie at java so this what I could come up with. Is there a faster way? Thank you.</p>