Java: HashMap inside a HashMap
My question is stupid, but I want to make sure its correct, because if it
isn't it might just break my app.
I have this: private static HashMap> balance = new HashMap<>();
if I get the value like this:
balance.get("something").put("something",100); When I get the hashmap
again like the above method does it stay recorded?
I'm almost positive the answer is yes, but you never know...
Thanks.
No comments:
Post a Comment