The Artima Developer Community
Sponsored Link

Java Answers Forum
hashtables

1 reply on 1 page. Most recent reply: Nov 1, 2002 6:48 AM by Don Hill

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
ben

Posts: 57
Nickname: loftty
Registered: Oct, 2002

hashtables Posted: Oct 31, 2002 4:06 AM
Reply to this message Reply
Advertisement
could u please help me with this?
the file that i am reading in will have 10 lines of text with 10 words on each line (seperated by comar delimeters). and wat i want is the first word of each line to be put inside a hash table and then the second word of each line into the same hashtable and so on with the 3rd word 4,5,6,7,8,9,10and then at the end i want to read the hashtable out.
could u please give me any suggestions
thanks for yr time ben


Don Hill

Posts: 70
Nickname: ssswdon
Registered: Jul, 2002

Re: hashtables Posted: Nov 1, 2002 6:48 AM
Reply to this message Reply
A question for you, do you know that a hashtable is a key-value pair collection object ?

Take a look at the StringTokenizer Class for parsing the lines into words.

Flat View: This topic has 1 reply on 1 page
Topic: Lonely Female, who needs Java program help!:) Previous Topic   Next Topic Topic: Working with strings

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use