I am really used at the following kind of code in Ruby:
my_hash = {}
my_hash['test'] = 1
What is the correspondent data structure in Java?
HashMap<String, Integer> map = new HashMap<>();
map.put("test", 1);
I assume?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With