title: Java, Compare 3 integers, arrange largest, median and smallest
body: <p>I have been assigned a homework assignment to prompt the user for 3 positive integers then compare and print them in order of largest, median and smallest.  </p>
  
  <p>Prompting and writing a while loop to check if the numbers are positive is fine.  I can also figure out how to print the largest and smallest integer.</p>
  
  <p>(Something like this?)</p>
  
  <pre><code> if (a &gt;= b) 
         if (a &gt;= c) { max= a; if (b &gt;= c) min= c; else min= b; }
         else { max= c; min= b; }
      else if (b &gt;= c)
         { max= b; if (a &gt;= c) min= c; else min= a; }
      else { max= c; if (a &gt;= b) min= b; else min= a; }
  </code></pre>
  
  <p>How would I calculate the middle integer using this same schema?  I would preferably not use an array yet as the professor has not yet explained them.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thank you!</p>