check string is present in arrayLIST code example Example: java arraylist contains string boolean ans = arr.contains("geeks");