Question: 5) PersonList is an ArrayList in which Person objects are stored. We want to get the following information id information of the Person object which

5) PersonList is an ArrayList in which Person objects are stored. We want to get the following information "id information of the Person object which is found ot index 4.". Which of the following statement should be used to reach this information? a) PersonList.get(4)-getid() b) Persontist.getid().get(4) c) Persontist [4]-getid(]) d) Persontist. Person get(4)-getid)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
