Is there a simpler way to check multiple values against one value in an if-statement? [duplicate]

You can do the following in plain java

Arrays.asList(a, b, c, d).contains(x);

Leave a Comment