0
can i use hashmap in setter?
hi ! i want to make a library by hash maps in java ! and i wonder if i can use the hashmap in setter or getter instead of the main ... can you help me ( ą©ą„Ā“ ļ½„ā ļ½„`) ą„ im still new so i dont know many things aboit java ā©ĖāæĖā©
1 Answer
+ 2
I am not sure I fully understand your question but with HashMaps you can use their "built-in" modifier methods: get put remove.
And you overwrite an element when you use its index again.