This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes HashMap values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "HashMap values " Watch "HashMap values " New topic
Author

HashMap values

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1371
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

Joined: Apr 14, 2004
Posts: 10336

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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
Don't get me started about those stupid light bulbs.
 
subject: HashMap values
 
Similar Threads
access Singleton class method thru jsp useBean
same key for diff values in HashMap
How to get Hashmap's value in jsp?
iterate HashMap<String,List> in My jsp page
MVC, Desktop application, where create POJO object?