complete workshop

This commit is contained in:
2026-05-26 09:44:50 +03:30
parent 83746b88f6
commit 022d8b6c7c
11 changed files with 116 additions and 20 deletions
+7 -3
View File
@@ -37,15 +37,19 @@ public class StudentLoader extends Thread {
// TODO:
// split line
String[] parts = line.split(",");
// TODO:
// read values
int id = Integer.parseInt(parts[0].trim());
String name = parts[1].trim();
String major = parts[2].trim();
double gpa = Double.parseDouble(parts[3].trim());
// TODO:
// create Student
Student student = new Student(id, name, major, gpa);
// TODO:
// add to students list
students.add(student);
}