how to check if string contains anything from my arraylist code example Example: java arraylist contains string boolean ans = arr.contains("geeks");