There are 3 values in LinkedHashMap.
"id" ->1
"name"->A
"status"->ACTIVE
But I can't access them via arraylist.
How can I access the id value?
1 "name"->A "status"->ACTIVE But I can't access them via arraylist. How can I access the id value?" /> 1 "name"->A "status"->ACTIVE But I can't access them via arraylist. How can I access the id value?" /> 1 "name"->A "status"->ACTIVE But I can't access them via arraylist. How can I access the id value?"/>
There are 3 values in LinkedHashMap.
"id" ->1
"name"->A
"status"->ACTIVE
But I can't access them via arraylist.
How can I access the id value?
Copyright © 2021 Jogjafile Inc.

Did you intialize the ArrayList? Like, did you add an element to it first?
If you want a special function called getID(), you will have to code that yourself. Also, I agreee with other comments that it seems like you should be creating a class. I'm not even sure what return types those are. Seems like they are mixed. I made them into String, but I'm betting you need to make a class that has 3 properties. id, name, status
Here is a basic example of a record class that holds those 3 properties