I have a map, as shown below, in which there is a key, and the values are of type List:
Map<String, List<String> newdatamap = new HashMap<>();
map.put ("RtyName", Arrays.asList("wpn", "wpfnb", "dgeft", "xbthy"));
map.put ("rtyRate", Arrays.asList("dd", "ww", "trrty", "httyure"))
I would like to add another card from the previous card, so there is a key, and its value will be given above. Is this the correct data structure and how to implement it?
I need something like this shown below
Key Value
B1 RtyName ----> "weepn", "weepfnb", "eedgeft", "xbteehy"
rtyRate ----->"deed", "ww", "terrty", "hteetyure"
B2 RtyName ----> "SSSweepn", "wpefSSSnb", "GGeGdgeft", "xbteYYYYhy"
rtyRate ----->"WWded", "wTeTYw", "YYYYtrerty", "IIIehttyure"
As shown above, only a new key is entered on the card, and its value is the previous card.
so it’s like Map<String, Map<String, List<String>>>that which becomes a complex data structure, I can organize a data structure such as one class containing a map, so it will look like
Map<B1 , RtyName>
Map<B2 ,rtyRate>
and the payer contains a list of values, such as
RtyName ----> "SSSweepn", "wpefSSSnb", "GGeGdgeft", "xbteYYYYhy"
rtyRate ----->"deed", "ww", "terrty", "hteetyure"
, B1 , RtyName, , "wpn", "wpfnb", "dgeft" "," xbthy "
, , , - .
, , Guava
final Table<String, String, List<String>> values = HashBasedTable.create();
values.put("B1", "RtyName", Lists.newArrayList("weepn", "weepfnb", "eedgeft", "xbteehy"));
System.out.println(values.get("B1", "RtyName"));
, , , B1 Rtyname Rtyname,