Extend hasMap to add putChildren method
Posted
by denny
on Stack Overflow
See other posts from Stack Overflow
or by denny
Published on 2010-04-02T08:58:22Z
Indexed on
2010/04/02
9:03 UTC
Read the original article
Hit count: 574
Hi all, i have question, i want to develop a programme about extend the hashmap to add putchildren method.. I wrote main class, but now i wanna write putChildrenValue method.. My question is : i need to implement a putChildrenValue method with 3 parameters, String key, String key, ObjectValue. It will store the system as described above accordingly.
When i finished this method When you finish the method data
Key1 = "RUBY" value=HashMap which has -> "key2" = 5248 && "VALUE" = German
Key1 = "PHYTON" value=HashMap which has -> "key2" = 1234 && -> "VALUE" = German
My main class is :
public static void main(String [] args)
{
ExtendedHashMap extendedMap = new ExtendedHashMap();
extendedMap.put (“Row1”, “Column1”, “German”);
extendedMap.put (“Row1”, “Column2”, “English”);
extendedMap.put (“Row1”, “Column3”, “Spanish”);
extendedMap.put (“Row2”, “Column1”, “Ruby”);
extendedMap.put (“Row2”, “Column2”, “Phyton”);
extendedMap.put (“Row3”, “Column3”, “Java”);
}
Can anyone help me?
© Stack Overflow or respective owner