This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

use hashtables instead of strings

 
nicky sajdok
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic