title: Output numbers in ascending order (if - else) java
body: <p>Tell me what is missing? Two values are sorted correctly, but the average is not :(</p>
  
  <pre><code>package com.Star;
  
  public class Main {
  
      public static void main(String[] args) {
  
          int a = 89;
          int b = 96;
          int c = 88;
  
          if (a &lt; b &amp; a &lt; c)
              System.out.println(a + " " + b + " " + c);
  
          if (b &lt; c &amp; b &lt; a)
              System.out.println(b + " " + c + " " + a);
  
          if (c &lt; a &amp; c &lt; b)
              System.out.println(c + " " + b + " " + a);
  
      }
  }
  </code></pre>