File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

use hashtables instead of strings

nicky sajdok

Joined: Jan 22, 2003
Posts: 14
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
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.

Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: use hashtables instead of strings
It's not a secret anymore!