How can I compare String value with ArrayList of String type in Java?
java
Solution
Use
ArrayList.contains("StringToBeChecked");
If the String is present in the ArrayList, this function will return true, else will return false.
Problem
My requirement is comparing `String` to `ArrayList` which contains a list of strings. Can any one suggest me?