javac *.java -d target; java -cp target Main
javac *.java -d target; jar cfe java-dsa-student-management.jar Main -C target .
to run it:
java -jar java-dsa-student-management.jar
-
insert/add first/middle/last
-
remove first/middle/last
-
display (head -> tail)
-
sort
-
check for empty
-
Student model:
- id: string, max 10 chars, unique
- fullname: string, max 40 chars
- score: float
-
Requirements:
-
insert students to list
-
Read student list from file
-
print student list
-
print students whose score > 5
-
Output student whose Id = 'X'
-
sort by score ascendant
-
add new student after student id = 'X'
-
remove first student
-
remove last student
-
remove student whose id = 'X'
-
remove all
-
[id: 111, fullname: batman, score: 10] <-> [id: 212, fullname: superman, score: 8] <-> [id: 123, fullname: tom, score: 4] <-> [id: 123, fullname: jerry, score: 3]
-
item/element structure:
- student
- next
- prev
-
list structure:
- head: Student
- tail: Student
-
empty list:
- head == null == tail