ジェネリック型にしたい Arraylist を遅らせました。
ArrayList<T> locker = new ArrayList<T>();
次に、ジェネリックである必要がある add メソッドがあります。
public <T extends Gear> boolean add(Gear item)
{
locker.add(item);// this is giving me compile error => no suitable method found for add(Gear)
return true;
}
どうすれば修正できますか。ジェネリック型も初めてです。