title: Is there clean syntax for checking if multiple variables all have the same value?
body: <p>We have n variables <code>X = {x1,x2,...xn}</code> they are not in any structures whatsoever.</p>
  
  <p>In python for example I can do that: <code>if (x1 == x2 == x3 == xn):</code></p>
  
  <p>In java I must do: <code>if((x1 == x2) &amp;&amp; (x2 == x3) &amp;&amp; (x3 == xn)):</code></p>
  
  <p>Do you know a simple way to improve this syntax? (Imagine very long variable name and lot of them)</p>
  
  <p>Thanks.</p>