aspose file tools*
The moose likes Java in General and the fly likes use hashtables instead of strings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "use hashtables instead of strings" Watch "use hashtables instead of strings" New topic
Author

use hashtables instead of strings

nicky sajdok
Greenhorn

Joined: Jan 22, 2003
Posts: 14
Hi
The code below prints this out
[goods out, firstname, lastname]
[id, adress1]
[country, phone]
[goods in]
Now how can i get my code to print out the same, but instead of using the strings Values and keys,
use hashtables?
Also how can i do it without using the (public static void getval)
Hope You can solve this
nicky
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Have you looked at the Java API docs? It explains the methods for the Hashtable class very thoroughly. You should be able to at least get a start on it from there. Please come back with some specific questions if you run into any trouble along the way.
Layne


Java API Documentation
The Java Tutorial
 
 
subject: use hashtables instead of strings