arrays - Recursively Create Hasmaps in Java -
I am trying to create a new so you will have 4 documents for: How do I complete Can i It seems that you are trying to dynamically declare the variable Can not do - the variable they set themselves on compile time, However, you can create a list: hashmap for each document as input. In Pseudeocode I can think of something like:
for
(each input dock) {map & lt; String, string & gt; MapInputNumber = new hashmap & lt; String, string & gt; }
mapInput1 mapInput2 mapInput3 mapInput4
list & lt; Maps & lt; String, string & gt; & Gt; Maps = new arreelist & lt; Maps & lt; String, string & gt; & Gt; (); (Document document: Docs) for {map & lt; String, string & gt; Map = new hashmap & lt; String, string & gt; (); // Map by map map.add (map); }
Comments
Post a Comment