Simplify StudentStore
This commit is contained in:
parent
8a3c918b94
commit
4a19a6ba88
|
@ -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;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue