Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HashMap values

 
kri shan
Ranch Hand
Posts: 1464
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First i want to add my values with key to the HashMap. Finally i add these HashMap values to the db.(db insertion)
How can i do that?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You add values to a HashMap with the put(Object, Object) method, as you can see if you read the JavaDocs for HashMap.

You can add data to a database using JDBC. And there is a tutorial for this at Sun.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic