I have an array named \"bob\" which contains values.
String[] bob = { \"this\", \"is\", \"a\", \"really\", \"silly\", \"list\" };
How can I kno
You can use List#contains method. For that you need to convert your array to a list. You can use Arrays#asList() method fot that:
String[] bob = { "this", "is", "a", "really", "silly", "list" }; if (Arrays.asList(bob).contains("silly")) { // true }