You want to pick a particular “short” word in an array of words, that is, words with at most three characters.

For example, if you are passed an array containing the words

"Mary", "had", "a", "little", "lamb"

and you are asked to return the second short word, you would return


Complete the following file:

public class Words { /** Returns the nth short word (length <= 3) in an array. @param words an array of strings @param n an integer > 0 @return the nth short word in words, or the empty string if there is no such word */ public String nthShortWord(String[] words, int n) { // your work here } }