title: Multiline lambda comparator
body: <p>I am starting with the lambda expressions in Java and there is something that I consider bizarre and I am sure that I am doing something wrong or it has a workaround.</p>
  
  <p>To define a comparator, I can do:</p>
  
  <pre><code> col.setComparator((CustomCell o1, CustomCell o2) -&gt;
              ((Comparable) o1.getValue()).compareTo(o2.getValue())
          );
  </code></pre>
  
  <p>Which is great, however, if I just add two "{". I get a compilation error:</p>
  
  <pre><code> col.setComparator((CustomCell o1, CustomCell o2) -&gt; {
              ((Comparable) o1.getValue()).compareTo(o2.getValue());
          });
  </code></pre>
  
  <p>The error is not related to the "{", but to <code>setComparator</code>:</p>
  
  <pre><code>The method setComparator(Comparator&lt;CustomCell&gt;) in the type 
  TableColumnBase&lt;CustomParentCell,CustomCell&gt; is not applicable for the arguments 
  ((CustomCell o1, CustomCell o2) -&gt; {})
  </code></pre>
  
  <p>I have tried using the multiline statements before for actionevents and it does work:</p>
  
  <pre><code> setOnAction(event -&gt; {
          // do something
   });
  </code></pre>
  
  <p>Is it because it only has one argument?</p>