style: Fix indentation and formatting across project files

This commit is contained in:
2026-05-24 06:47:23 +03:30
parent b01a5654a1
commit 8f28ccf82f
3 changed files with 11 additions and 25 deletions
@@ -7,11 +7,9 @@ import java.util.ArrayList;
public class StudentManager { public class StudentManager {
private final ArrayList<Student> students = private final ArrayList<Student> students = new ArrayList<>();
new ArrayList<>();
public void addStudents( public void addStudents(ArrayList<Student> newStudents) {
ArrayList<Student> newStudents) {
// TODO: // TODO:
@@ -22,8 +20,7 @@ public class StudentManager {
} }
public Student searchStudent( public Student searchStudent(int id) {
int id) {
// TODO: // TODO:
@@ -34,8 +31,7 @@ public class StudentManager {
return null; return null;
} }
public boolean removeStudent( public boolean removeStudent(int id) {
int id) {
// TODO: // TODO:
+3 -6
View File
@@ -15,11 +15,9 @@ public class StudentLoader extends Thread {
// Local student storage // Local student storage
private final ArrayList<Student> students = private final ArrayList<Student> students = new ArrayList<>();
new ArrayList<>();
public StudentLoader( public StudentLoader(List<String> lines) {
List<String> lines) {
this.lines = lines; this.lines = lines;
} }
@@ -53,8 +51,7 @@ public class StudentLoader extends Thread {
} }
public ArrayList<Student> public ArrayList<Student> getStudents() {
getStudents() {
return students; return students;
} }
+4 -11
View File
@@ -8,22 +8,15 @@ import java.util.List;
public class FileManager { public class FileManager {
public static List<String> public static List<String> loadStudents(String path) throws Exception {
loadStudents(
String path)
throws Exception {
List<String> lines = List<String> lines = new ArrayList<>();
new ArrayList<>();
BufferedReader reader = BufferedReader reader = new BufferedReader(new FileReader(path));
new BufferedReader(
new FileReader(path));
String line; String line;
while ((line = reader.readLine()) while ((line = reader.readLine()) != null) {
!= null) {
// TODO: // TODO: