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