Re: Novice programmer help?




"Christo" <chris@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:lPWdndp-TLcHkqfZnZ2dnUVZ8tKdnZ2d@xxxxxxxxx
I have a question

please this is just theory at the moment I am a novice java programmer

Is it possible for me to write information to a hashmap and then once it
has been written to extract a certain piece of information in that hash
map and store it in a variable

then manipulate the information stored in the variable and then put the
information from the variable back into the hashmap in the place that i
got it from

basically I have to be able to have something like this in the hasmap

Product1 ProductName 10

I want to take the 10 store it in a variable

then decrement the variable and store the variable back in the hasmap so
the hasmap looks like this

Product1 ProductName 9


please dont scare me with some complicated stuff just a hint in the right
direction would be good

Thanks in advance

Christo


erm ignore that post, sorry its all wrong


.



Relevant Pages

  • Novice programmer help?
    ... please this is just theory at the moment I am a novice java programmer ... Is it possible for me to write information to a hashmap and then once it has ... I want to take the 10 store it in a variable ... then decrement the variable and store the variable back in the hasmap so the ...
    (comp.lang.java)
  • Re: JTable and associating objects with nodes
    ... You can use quicktable version of Jtable and easily display the java ... Use the following code in quickTable for showing the hashmap name ... It easy to store the name of the object but to ...
    (comp.lang.java.gui)
  • Re: JTree and associating objects with nodes
    ... Why don't you subclass DefaultMutableTreeNode ... Bob Creasote wrote: ... Does anyone know how to store ... > objects in a name value pair data structure (i.e. hashmap) in a JTree? ...
    (comp.lang.java.gui)
  • Re: How to read in a text file in as an array?
    ... file as an array i mean) Any suggestions+code would be much ... Let's say it is a HashMap. ... Just store the HashMap as a single ... Canadian Mind Products, Roedy Green. ...
    (comp.lang.java.programmer)