title: Fastest way to sort 3 values in Java
body: <p>I have to put 3 values in correct order and print them out to the console. </p>
  
  <p>A solution is to put them into an array and then sort them, but I remember (from school times) that there was faster to compare and order them, however I can't find the correct comparison order.</p>
  
  <p>Could you please show me how to compare 3 values with the minimum number of <code>if</code> statements?</p>