style: Fix indentation and formatting across project files
This commit is contained in:
@@ -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:
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user