Lab4+
This commit is contained in:
parent
a41aa83934
commit
4aedc22ade
@ -5,8 +5,8 @@ public class TrashCollection <T> {
|
||||
public TrashCollection(){
|
||||
_queue = new ArrayDeque<>();
|
||||
}
|
||||
public void push(T monorail){
|
||||
_queue.add(monorail);
|
||||
public void push(T bus){
|
||||
_queue.add(bus);
|
||||
}
|
||||
public int getSize(){
|
||||
return _queue.size();
|
||||
|
Loading…
Reference in New Issue
Block a user