how to check if a string is present in list java code example
Example: list contains
List<Integer> arr = new ArrayList<Integer>(4);
boolean ans = arr.contains(2);
List<Integer> arr = new ArrayList<Integer>(4);
boolean ans = arr.contains(2);