You should really type the ArrayList with String and not Object, since you are populating it with strings
ArrayList<String> list = new ArrayList<String>();
Type: Posts; User: DavidFongs
You should really type the ArrayList with String and not Object, since you are populating it with strings
ArrayList<String> list = new ArrayList<String>();
Instead of counting the words, creating an array, and then reading the words again, why not use an ArrayList: ArrayList (Java Platform SE 6)
This way, you can create an ArrayList (since you don't...