I have an array named \"bob\" which contains values.
String[] bob = { \"this\", \"is\", \"a\", \"really\", \"silly\", \"list\" };
How can I kno
If you are going to check it a lot you may find it more efficient to use a HashSet:
HashSet
String[] bob = { "this", "is", "a", "really", "silly", "list" }; Set silly = new HashSet(Arrays.asList(bob)); boolean isSilly = silly.contains("silly");