You need to sign in to do that
Don't have an account?

How to initialized Map<String,Map<String,String>
Good day,
May i know how can i initialized Map<String,Map<String,String>> or List<String,Map<String,String>>
I need to keep a set of info like below , which is the best case ?
APJ, countryName_1, CountryID_1
EMEA, CountryName2, CountryID_2
Thanks in advance !
Indeed, a nested for
All Answers
Hi Ritesh Aswaney,
Thanks for the solution, but how can we get the inner map key and value ? we must use a for loop to do that ?
Indeed, a nested for
Thanks Ritesh Aswaney,
Just before i mark this as solution, do you think create a class to hold the data will be good choice ? since we can directly get the value ?
You can do, if it affords you reusability. If not, just use it as a data structure.
got it , Thanks again Sir !