aspose file tools
The moose likes Beginning Java and the fly likes HashMap values Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "HashMap values " Watch "HashMap values " New topic
Author

HashMap values

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1300
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: HashMap values
 
Similar Threads
iterate HashMap<String,List> in My jsp page
How to get Hashmap's value in jsp?
access Singleton class method thru jsp useBean
same key for diff values in HashMap
MVC, Desktop application, where create POJO object?