can java.util.properties replace HashMap effectively ?
Hi everyone,
My requirement is to store the name/value pair of the configuration.they are divided into different section.that is similar name/value pair are grouped under a section.
This was handled by using hashMap. But now i want to use java.util.properties for the same requirement as in the earlier case i had many section which lead to many HashMap.And finally ended up to lot number of object in the runtime.
the problem is hashmap could hold<object,object> So i could hold HashMap in the value of a key. And then get the access of that map through this value. But properties hold<String,String> ( upto my learning about properties). Is it possible to hold a reference of the another entry inthe property's value.
For example :
[CODE]
HashMap child = new HashMap();
child.put("b","1")
HashMap parent = new HashMap();
parent.put("a","1");
parent.put("child",child);
[/CODE]
so now i can access child through parent.
[CODE] String num = parent.get("child").get("b");[/CODE]
can i do a similar thing with java.util.properties

