Готовая лабораторная работа 6

This commit is contained in:
Никита Белянин 2023-12-05 02:01:09 +04:00
parent 92e00e4304
commit f4373424ba

View File

@ -156,8 +156,8 @@ public class TanksGenericStorage {
List<String> reversedSet = Arrays.asList(set);
Collections.reverse(reversedSet);
for (String elem : reversedSet) {
DrawingArmoVehicle train = ExtentionDrawingTank.CreateDrawingTank(elem, _separatorForObject, _pictureWidth, _pictureHeight);
if (train == null || collection.Add(train) == -1)
DrawingArmoVehicle vehicle = ExtentionDrawingTank.CreateDrawingTank(elem, _separatorForObject, _pictureWidth, _pictureHeight);
if (vehicle == null || collection.Add(vehicle) == -1)
return false;
}
_tankStorages.put(record[0], collection);