From b481b124a805221c71de6b08f0ef2100950585c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9F=D0=BE=D0=BB?= =?UTF-8?q?=D0=B5=D0=B2=D0=BE=D0=B9?= Date: Mon, 24 Oct 2022 22:22:51 +0400 Subject: [PATCH] Fix SetArtilleriesGeneric --- SetArtilleriesGeneric.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SetArtilleriesGeneric.java b/SetArtilleriesGeneric.java index 03d19a7..77d1f52 100644 --- a/SetArtilleriesGeneric.java +++ b/SetArtilleriesGeneric.java @@ -9,11 +9,11 @@ public class SetArtilleriesGeneric { _places = new Object[count]; } - public int Insert(T artillery) { - return Insert(artillery, 0); + public int insert(T artillery) { + return insert(artillery, 0); } - public int Insert(T artillery, int position) { + public int insert(T artillery, int position) { if (position < 0 || position >= getCount()) { return -1; } @@ -46,7 +46,7 @@ public class SetArtilleriesGeneric { } @SuppressWarnings("unchecked") - public T Remove(int position) { + public T remove(int position) { if (position < 0 || position >= getCount()) { return null; @@ -60,7 +60,7 @@ public class SetArtilleriesGeneric { } @SuppressWarnings("unchecked") - public T Get(int position) { + public T get(int position) { if (position < 0 || position >= getCount()) { return null; }