Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ArrayList<Student> getReserves() {
- ArrayList<Student> queue = new ArrayList<Student>();
- if (this.students.size() > 0) {
- if (this.students.size() <= this.places) {
- return queue;
- }
- }
- if (this.students.size() >= this.places) {
- queue.addAll(this.places, this.students);
- }
- return queue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement