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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -