labwork04 UP!

This commit is contained in:
BoiledMilk123 2024-06-05 01:35:49 +04:00
parent 48da449924
commit a180fa3b0a

View File

@ -27,7 +27,13 @@ public class StorageCollection<T extends Object> {
}
}
public T GetShip(String name, int ind){
if (name == null || !storage.containsKey(name)) return null;
return storage.get(name).get(ind);
}
public void delCollection(String name) {
if(!storage.containsKey(name)) return;
storage.remove(name);
}