java adjust arraylist code example Example 1: modify element in list java list.set( 2, "New" ); Example 2: .set arraylist Java arraylist set()