Мелкая правка 7-й лабораторной.

This commit is contained in:
Programmist73 2022-12-02 18:27:25 +04:00
parent fd1be311a2
commit 8feb7ccbc4

View File

@ -55,6 +55,11 @@ public class SetPlanesGeneric<T extends Object> implements Iterable<T>
throw new PlaneNotFoundException(position);
}
if (_places.get(position) == null)
{
throw new PlaneNotFoundException(position);
}
// удаление объекта из массива, присовив элементу массива значение null
T temp = _places.get(position);
_places.remove(position);