This commit is contained in:
Yunusov_Niyaz 2023-11-23 22:56:22 +04:00
parent a41aa83934
commit 4aedc22ade

View File

@ -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();