arraylist string how can get element contains code example
Example 1: java arraylist contains string
boolean ans = arr.contains("geeks");
Example 2: arraylist contains doc
ArrayList strings=new ArrayList();
boolean ans = arr.contains("geeks"); //ans=false