Hello I'm having problems with modifying some values in the hashteble when two keys are the same
< P> I define my hashtable, hashtable
And my program fills it with some data with the .put ()
method.
Note: The first column displays the hex value
08 86AA10FF 3302A 54E6060
I I can check the string duplicate with (hash canton's (string x)) {}
. If I want to insert another data in the hashtable, but the same string hash.pt ("AA", 77);
I just do not know how to add value to the hashtable with my new value and hashtable with no duplicate string, this means that my last surprise is going to be visible
08 86 AA 87FF 330 2A 54E160
Any suggestions?
string yourKey = "aa"; Int Val = 77; If (hashbatab kantensky (of yours)) val + = hashtable.get (yourKey)); Hashtable.eput (yours, wal);
Checks for this duplicate and then if it is, add the original value to the table
No comments:
Post a Comment