当我尝试添加到我的数组列表(stringer)时,出现以下错误:
error: no suitable method found for add(Fish)
stringer.add(f);
在此代码中:
public class Habitat {
ArrayList<String> stringer = new ArrayList<String>();
int[] fishArr;
public int maxCount=25;
public int minCount=9;
public int maxWeight=10;
public int