我想在兩個地方在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>();