Home > Back-end >  Pray god help children, the Java class won't do, very difficult
Pray god help children, the Java class won't do, very difficult

Time:10-13

To set add, delete and modify the element
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 own

CodePudding user response:

New class Clazz (clazzId, clazzName) and Student Student
Storage structure choose ArrayList
It is good to dry up