I'm back again
I'm trying to use a HashMap to hold part numbers, a quantity and a description.
I'm getting an error when I compile my code, the saying"method put(java.lang.String, int) not found in class java.util.HashMap."
I'm thinking i'm getting this error because you cann't put an int into a HashMap. Is this thinking correct?
here's a bit of the code i'm using
more questions i want to check for a key number, in this case it's partNum and if the key is there display the partNum, quantity, and description. Would the above code put both quantity and description with the same key, partNum. Or do I need to create an object to combine both description and quantity. And then put that object in the h.put?
And if i have to create an object combining quantity and description how would i pull that information out seperatly inorder to display it.
Any help would be appreciated.
Thanks,
Chris