我想在两个地方在Java中做一个数组列表,但我不知道我在做什么错。它说需要一个数组,但我不知道这是什么意思,因为我正在使用数组列表。ArrayList编译器错误
这就是会被搞砸行:
static char rSpaces(String problem, int count)
{
num.add(problem.charAt(count));
char no = num[count];
return no;
}
如果这会有所帮助,这是我创造了(我已经导入它)数组列表行:
static ArrayList<Character> num = new ArrayList<Character>();