the class String has a method called contains(CharSequence s) that returns true if the charsequence given as s is in the String the method is called, example

Java Code:

String s = "My name is Bond, James Bond";
System.out.println(s.toUpperCase().contains("BOND"));

note, that chained methods are evaluated from left to right, so the string s is set to uppercases so that the search is not case sensitif (if you want that). for your code loop through the arrays of string a make a call to contains() to look for your word.