What's the method to tell how many different words there are in the ArrayList?
For example:
public static ArrayList<String> myArray = new ArrayList<String>();
myArray.add("a");
myArray.add("b");
myArray.add("a");
myArray.add("c");
And the output will be
there is 3 different word in this array.