We have n variables `X = {x1,x2,...xn}` they are not in any structures whatsoever.

In python for example I can do that: `if (x1 == x2 == x3 == xn):`

In java I must do: `if((x1 == x2) && (x2 == x3) && (x3 == xn)):`

Do you know a simple way to improve this syntax? (Imagine very long variable name and lot of them)

Thanks.