Deep Copy using Clone() Method · ArrayList<Student> clonedStudentList = new ArrayList<>(); · for(Student st:studentList) · clonedStudentList.add(st.clone());.
確定! 回上一頁