Question: 1 1 - list is an arraylist which stores String values. list.add ( Ali ) ; list.add ( Baran ) ; list.add ( Cemre )

11- 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.indexOf("Cemre"));
c) list.set( list.indexOf("Cemre"), "Zeynep" );
d) list[2]= "Zeynep" ;
Leave blank
 11- list is an arraylist which stores String values. list.add( "Ali"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!