thats great am able to get the items added in the commonwords class. although im still having a problem removing the items from the initial hashmap. i have changed it slightly now to use an arraylist for the commonwords instead of a hash table as i had no need for a value next to the
string.
im not sure whether the remove statement is going to work now.
as counts is a hashmap and cwords is an arraylist of string objects.
so problems at the moment are that i cant instantiate the arraylist and cannot remove commonwords from hashmap.
any ideas thanks.