boolean ans = arr.contains("geeks");
ArrayList<String> strings=new ArrayList<String>(); boolean ans = arr.contains("geeks"); //ans=false