how to edit a value in a List java code example Example: modify element in list java list.set( 2, "New" );