Question: solve it 14- list is an arraylist which stores String values. Examine the following code: list.add(Ali); list.add(Baran); list.add( Cemre); list.add( Defne); list.add( Elmas ); Which
14- list is an arraylist which stores String values. Examine the following code: list.add("Ali"); list.add("Baran"); list.add( "Cemre"); list.add( "Defne"); list.add( "Elmas" ); Which of the following option will change the list so that it looks like: Ali Baran Cemre Defne Omer Elmas a) list.add( 4. "Omer") b) list.set( 3, "Omer") c) list.set( 4, "Omer") d) list.add( 3, "Omer")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
