java - How to retrieve contents from Map<String, Map<String,String>>? -
map<string, map<string,string>> regmap = new hashmap<string, map<string,string>>(); how retrieve contents regmap? there data structure can store 3 related things ?
...or there data structure can store 3 related things?
just create own class.
public class foo { private final bar thingone; private final bar thingtwo; private final bar thingthree; // ... } you can store in collection if necessary.
note: don't take trivial example suggestion should name fields foo1, foo2 etc. give them meaningful names, such forename, surname, etc.
Comments
Post a Comment