Question: 1 1 - list is an arraylist which stores String values. list.add ( Ali ) ; list.add ( Baran ) ; list.add ( Cemre )
list is an arraylist which stores String values.
list.add "Ali" ;
list.add "Baran" ;
list.add "Cemre" ;
list.add "Dogan";
list.add "Elmas" ;
Which of the following will replace the element "Cemre" with "Zeynep"
a list.set "Zeynep", "Cemre" ;
b list.add "Zeynep", list.indexOfCemre;
c list.set list.indexOfCemre "Zeynep" ;
d list "Zeynep" ;
Leave blank
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
