title: How shorthand works in Java
body: <p>I cannot find valid syntax for java shorthand.</p>
  
  <p>How should i rewrite in shorthand this thing:</p>
  
  <pre><code>     int a = 2, b=4;
          if(a &lt; 4) {
          System.out.println("a &lt; b");}
      else { System.out.println("a &gt;= b");
    }
  </code></pre>