Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Rob Spoor
Junilu Lacar
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Piet Souris
Carey Brown
Bartenders:
Forum:
Beginning Java
HashMap values
kri shan
Ranch Hand
Posts: 1491
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to get Hashmap's value in jsp?
iterate HashMap<String,List> in My jsp page
MVC, Desktop application, where create POJO object?
access Singleton class method thru jsp useBean
same key for diff values in HashMap
More...