I have the following code:
List<int> intList = new ArrayList<int>();
for (int index = 0; index < ints.length; index++)
{
intList.add(ints[index]);
}
It gives me an error...
Syntax error on token "int", Dimensions expected after this token
The error occurs on the line starting with List
. Can someone explain why I am getting the error?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…