...

View Full Version : Java Array word count



squirellplaying
10-19-2005, 03:38 AM
I'm trying to count the number of occurences of each word in a paragraph. The paragraph is in an arraylist, so I suppose what I need to do is make an array that counts each word. I want to do something like
theArray["word"]=theArray["word"]+1;
Is that possible without using a hash table?

_Aerospace_Eng_
10-19-2005, 06:04 AM
This should be in the computer programming forum. Ask a moderator to move this for you.

squirellplaying
10-20-2005, 02:23 AM
Oh crap I thought I was in there. But I think I have a solution. Org.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum