java 需要标识符--debug一下,谢谢

来源:百度知道 编辑:UC知道 时间:2024/05/24 10:15:17
public class operation{
public static void main(String[]args){
//declare the array and cast the data
int [][]operationList=new int [4][5];
for (int n=1;n<=4 ;n++ )
{
System.out.println("请输入第"+n+"位销售员的业绩:\n-------------------------");

for (int i=0;i<=5 ;i++ )
{
System.out.println("销售员"+n+",业务"+i+"的推销情况:");
try{
dataEachLineString=in.readLine();
}catch(IOException e){e.printStackTrace();}
int dataEachLineInt=Integer.parseInt(dataEachLineString);
operationList[n-1][i-1]=dataEachLineInt;
}

}
//output the result table----the title
System.out.println("\n统计结果:\n统计");
for (int n=1;n<=4 ;n++ )
{
System.out.println("\t业务"+n);
}
System.out.println("\t个人统计");
//o

把System.out.println("业务统计:");
上面的一个}(右大括号)
移到程序的最后

"}"位置错误!我改了一下:

}
System.out.println("\t"+dataPerson(s));
}
//*此处的"}"移动到下面dataPerson方法之上*
// output the result table---the bottom info
System.out.println("业务统计:");
for (int d=1;d<=5 ;d++ )
{
System.out.println("\t"+dataProject(d));
}
}//*从上面移动下来的"}"*

// the method "dataPerson" for calculating the outcome of each salesman ...