ArrayList<Student> studentArray = new ArrayList<Student>();
studentArray.add(new Student("Nick", "18", "1st Street"));
studentArray.add(new Student("John", "22", "2st Street"));
studentArray.add(new Student("Anthony", "19", "3rd Street"));
如何只修改第二行的地址?我想将 1st Street 更改为 2nd Street,但我想保持 John 和 22 和以前一样。
第 2 行,第 3 项。