Do something like:
Arrays.asList(array).contains(x); since that return true if the String x is present in the array (now converted into a list...)
Example:
if(Arrays.asList(arraymyArray).contains(x)){ // is present ... :) } since Java8 there is a way using streams to find that:
boolean found = Arrays.stream(myArray).anyMatch(x::equals); if(found){ // is present ... :) }