1, in the collection of Student object (stuId, stuName stuAge, stuClass (Clazz type))
2, there are two entity class (class Clazz (clazzId, clazzName) and Student Student)
3, class is fixed, stored in a separate collection
4, increase student, need to fill in the student id, name, age and class number (if there is a validation class)
5, according to the student id or name delete delete student requirements, if there is no requirement to enter, otherwise the request according to the student information (student id, name, age and class name), to confirm delete
6, modify the students requirements according to the student id or name to find the first student (modified options: name, age and class number (verify whether modified class number))
7, after every operation according to the latest information of all students
CodePudding user response:
This is the most basic work, be sure to write their ownCodePudding user response:
New class Clazz (clazzId, clazzName) and Student StudentStorage structure choose ArrayList
It is good to dry up