我可以初始化2D数组的ArrayList,这是一个什么东西?
所以当我尝试初始化时,下面是我的代码
ArrayList<int>[][] suffle = new ArrayList<int>[row][col];
Run Code Online (Sandbox Code Playgroud)
我收到这样的错误:
错误:语法错误,插入"Dimensions"以完成ReferenceType
我怎样才能解决这个问题?
public class ScoreIt2
{
public static void main(String [] args)
{
ScoreIt h= new ScoreIt();
System.out.println(h.maxPoints([2, 2, 3, 5, 4 ]));
}
}
public class ScoreIt
{
public int maxPoints(int[] toss)
{
}
}
Run Code Online (Sandbox Code Playgroud)
我试图从另一个文件调用一个函数,我有我的代码,当我尝试编译它时,它说有一个令牌错误.