public static boolean look(String []p,String w) { boolen flag = true; for (int i=0; i<p.length;i++)
if (p.equals(w))flag = false;
return falg;
}
}//Meth1
a) Work out and documentthe processes being carried out by the method "words" in the above class. Your documentation should include any data used for the purpose.
b) a client has an array of English words. What is required to list all those words from the array, which come alphabetically after the word "master", and they are to appear in alphabetical order. For example: given an array of words as shown below:
cast static thread make void import
should produce an array of words:
static thread void
Use inheritance to extend the class "Meth1" to produce the necessary method