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