feat: Set up project skeleton with stub implementations for student tasks

This commit is contained in:
2026-05-24 06:38:55 +03:30
parent 68df67ed4d
commit b01a5654a1
5 changed files with 356 additions and 1 deletions
@@ -0,0 +1,59 @@
package dev.service;
import dev.model.Student;
import java.util.ArrayList;
public class StudentManager {
private final ArrayList<Student> students =
new ArrayList<>();
public void addStudents(
ArrayList<Student> newStudents) {
// TODO:
// Merge students
// Hint:
// addAll()
}
public Student searchStudent(
int id) {
// TODO:
// Loop through students
// Compare IDs
return null;
}
public boolean removeStudent(
int id) {
// TODO:
// Find student
// Remove student
return false;
}
public void printStudents() {
for (Student student : students) {
System.out.println(student);
}
}
}