Go Back   CodingForums.com > :: Computing & Sciences > Computer/PC discussions

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-19-2005, 02:38 AM   PM User | #1
squirellplaying
Regular Coder

 
Join Date: Jan 2004
Location: Maryland
Posts: 468
Thanks: 0
Thanked 0 Times in 0 Posts
squirellplaying is an unknown quantity at this point
Java Array word count

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?
squirellplaying is offline   Reply With Quote
Old 10-19-2005, 05:04 AM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
This should be in the computer programming forum. Ask a moderator to move this for you.
_Aerospace_Eng_ is offline   Reply With Quote
Old 10-20-2005, 01:23 AM   PM User | #3
squirellplaying
Regular Coder

 
Join Date: Jan 2004
Location: Maryland
Posts: 468
Thanks: 0
Thanked 0 Times in 0 Posts
squirellplaying is an unknown quantity at this point
Oh crap I thought I was in there. But I think I have a solution. Org.
squirellplaying is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:09 AM.


Advertisement
Log in to turn off these ads.