Answer the question
In order to leave comments, you need to log in
Is it necessary to overwrite the value in HashMap?
Yes HashMap<String, List<ArrayList<String>>
, I get the value by key, add data to the ArrayList and leave it. Is this the right thing to do? Or can there be hidden consequences? Or is it better to change the entire old value to a new one using replace ?
Answer the question
In order to leave comments, you need to log in
Is that the right thing to do?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question