Hey Guys,

I'm hoping you could help me out here. I'm confused on how to use HashMap. I'm trying to use HashMap or HashTable to count words in a JTextArea. I have two text areas, one for editable and the other is not. So, I read a txt file into the JTextArea and I need to count how many words in that file.

Any ideas?