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

This commit is contained in:
Никита Белянин 2023-12-18 01:14:18 +04:00
parent e1e6a15b1a
commit 5ec534d436
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<output url="file://$MODULE_DIR$/out/production/Tank" />
<output-test url="file://$MODULE_DIR$/out/test/Tank" />
<exclude-output />

View File

@ -24,7 +24,7 @@ public class SetGeneric <T extends Object> {
public boolean Insert(T tank, int position) {
// Проверка позиции
if (position < 0 || position >= _maxCount)
if (position < 0 || position >= Count())
throw new TankNotFoundException(position);
if (_places.size() >= _maxCount)