Does Java have a "IN" operator or function like SQL?

Viewed 64976

I want to know if there's a way of doing something like this in Java :

if(word in stringArray) {
  ...
}

I know I can make a function for this but I just want to know if Java has already something for this.

Thank you!

11 Answers
Related