How can I check if a String is there in the List?
String
List
I want to assign 1 to temp if there is a result, 2
1
temp
2
temp = bankAccNos.contains(no) ? 1 : 2;