String arr = {"ololo", "OLOLOLO", "CooL"};
String str = "ololo";
if(Arrays.asList(arr).contains(str)){
  System.out.println(str);
}