can i use hashmap in setter? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 āˆ©Ė™ā–æĖ™āˆ©

2nd Feb 2019, 8:18 AM
PinkCode
PinkCode - avatar
1 Resposta
+ 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.
6th Apr 2019, 4:37 PM
Nonea
Nonea - avatar