Posted By:
George_Simple
Posted On:
Sunday, March 2, 2003 02:39 AM
Hi, everyone! I think when modifing an object belongs to a HashTable, and later when retrieve the same object from the same HashTable, the value of the object is updated automatically. For example, -------- //get an object from a HashTable ObjectType ob1 = (ObjectType)someHashTable.get(keyValue); //update the value of ob1 ... //Then get the same object from someHashTable ObjectType ob2 = (ObjectType)someHashTable.get(keyValue); //at here, the value of ob2 has been updated. -------- Thanks in advance, George
More>>
Hi, everyone!
I think when modifing an object belongs to a HashTable, and
later when retrieve the same object from the same HashTable,
the value of the object is updated automatically. For example,
--------
//get an object from a HashTable
ObjectType ob1 = (ObjectType)someHashTable.get(keyValue);
//update the value of ob1
...
//Then get the same object from someHashTable
ObjectType ob2 = (ObjectType)someHashTable.get(keyValue);
//at here, the value of ob2 has been updated.
--------
Thanks in advance,
George
<<Less