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 {
private final ArrayList<Student> students =
new ArrayList<>();
private final ArrayList<Student> students = new ArrayList<>();
public void addStudents(
ArrayList<Student> newStudents) {
public void addStudents(ArrayList<Student> newStudents) {
// TODO:
@@ -22,8 +20,7 @@ public class StudentManager {
}
public Student searchStudent(
int id) {
public Student searchStudent(int id) {
// TODO:
@@ -34,8 +31,7 @@ public class StudentManager {
return null;
}
public boolean removeStudent(
int id) {
public boolean removeStudent(int id) {
// TODO:
+3 -6
View File
@@ -15,11 +15,9 @@ public class StudentLoader extends Thread {
// Local student storage
private final ArrayList<Student> students =
new ArrayList<>();
private final ArrayList<Student> students = new ArrayList<>();
public StudentLoader(
List<String> lines) {
public StudentLoader(List<String> lines) {
this.lines = lines;
}
@@ -53,8 +51,7 @@ public class StudentLoader extends Thread {
}
public ArrayList<Student>
getStudents() {
public ArrayList<Student> getStudents() {
return students;
}
+4 -11
View File
@@ -8,22 +8,15 @@ import java.util.List;
public class FileManager {
public static List<String>
loadStudents(
String path)
throws Exception {
public static List<String> loadStudents(String path) throws Exception {
List<String> lines =
new ArrayList<>();
List<String> lines = new ArrayList<>();
BufferedReader reader =
new BufferedReader(
new FileReader(path));
BufferedReader reader = new BufferedReader(new FileReader(path));
String line;
while ((line = reader.readLine())
!= null) {
while ((line = reader.readLine()) != null) {
// TODO: