public int[][] fileRead(String fileName);
{
Scanner problem = new Scanner(new File(fileName));
int m = 9;
int [][] tgrid = new int[m][m];
while(input.hasNextInt()){
for (int i=0;i<m;i++){
for (int j=0;j<m;j++)
a[i][j] = input.nextInt();
}
}
由于某种原因,此代码给出了两个语法错误......错误如下。
2 errors found:
File: C:\Documents and Settings\s2813788\My Documents\Downloads\1005ICTAssignment\SudokuDriver.java [line: 81]
Error: Syntax error on token "(", ; expected
File: C:\Documents and Settings\s2813788\My Documents\Downloads\1005ICTAssignment\SudokuDriver.java [line: 81]
Error: Syntax error on token ")", delete this token
我看不出方法头或类似的东西有什么问题:| 任何帮助,将不胜感激。