Please help me with below code , I get the same output even after changing the value
import java.util.*; class Test { public static void main(String[] a
Use the set method to replace the old value with a new one.
list.set( 2, "New" );