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

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个人统计");

//output the result table---the context

for (int s=1;s<=4 ;s++ )

{

System.out.println("\n销售员"+s);

for (int t=1;t<=5 ;t++ )

{

System.out.println("\t"+operationList[s-1][t-1]);

}

System.out.println("\t"+dataPerson(s));

}

}

//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

public static int dataPerson(int number){

int result=0;

for (int r=0;r<=4 ;r++ )

{

result+=operationList[number-1][r];

}

return result;

}

//the method "dataProject"for calculating the outcome of each project

public static int dataProject(int number){

int result=0;

for (int n=1;n<=4 ;n++ )

{

result+=operationList[n-1][number-1];

}

return result;

}

}

---------- java编译 ----------

operation.java:39: 需要

System.out.println("业务统计:");

^

operation.java:40: 非法的类型开始

for (int d=1;d<=5 ;d++ )

^

operation.java:63: 需要

^

3 错误

Output completed (0 sec consumed) - Normal Termination

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值