Answers for "arraylist contains doc"

2

java arraylist contains string

boolean ans = arr.contains("geeks");
Posted by: Guest on October-23-2020
0

arraylist contains doc

ArrayList<String> strings=new ArrayList<String>();
boolean ans = arr.contains("geeks");		//ans=false
Posted by: Guest on March-11-2021

Browse Popular Code Answers by Language