Question: How would I load data from a database into a HashMap? (I'm talking about java specifically in NetBeans by the way). Say for example, I
How would I load data from a database into a HashMap? (I'm talking about java specifically in NetBeans by the way).
Say for example, I have a series of products. The database has the following columns:
Product ID
Product Manufacturer
Product Name
Product Year
I want to load the information under those columns into a hashmap. How would I do so? This is what I currently have but it doesnt work
public void loadHash(Product product) { HashMap
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
