how to change elements in an array java code example Example: modify element in list java list.set( 2, "New" );