Rename Key in HashMap
Posted on 2005-04-23
I have a a HashMap, for the sake of this question, we'll say that it's like the following:
HashMap map = new HashMap( 5, 0.75F );
map.put( "KeyName", new JFrame("Example") );
I somehow, need to be able to rename the key "KeyName" to something else.. is there a way to change the 'Key' of an element in a HashMap??