Simplify StudentStore
This commit is contained in:
@@ -40,11 +40,6 @@ public class StudentStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean deleteStudent(int id) {
|
public boolean deleteStudent(int id) {
|
||||||
Student student=students.remove(id);
|
return students.remove(id) != null;
|
||||||
if (student == null)
|
|
||||||
return false;
|
|
||||||
else
|
|
||||||
return true;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user