我正在尝试通过类的构造函数将二维字符数组复制到另一个二维字符数组中。原始数组从外部文本文件中读取,然后转换为二维数组。但是我似乎无法从另一个类中读取这个二维数组。下面列出了我正在尝试的代码,它是搜索类的构造函数。谢谢你。
char[][] arraytwo;
public search(char[][] inarray)
{
for(int i = 0; i < inarray.length; i++)
{
String row = inarray.;
for(int j = 0; j < inarray[i].length; j++)
{
arraytwo[i][j] = inarray.charAt(c);
}
}
}