Java中multiple markers at this line
答案:1 悬赏:50
解决时间 2021-01-11 01:57
- 提问者网友:美人性情
- 2021-01-10 06:24
Java中multiple markers at this line
最佳答案
- 二级知识专家网友:轻熟杀无赦
- 2021-01-10 07:43
CsvWriter System1,System2, System3;
switch(i):{
case 1:
System1 = new CsvWriter("E:\\result\\System1in condition that beta ="+tb+", gama="+tg+"+".csv");
System2 = new CsvWriter("E:\\result\\System2in condition thatbeta ="+tb+", gama="+tg+"+".csv");
System3 = new CsvWriter("E:\\result\\System3in condition thatbeta ="+tb+", gama="+tg+"+".csv");
break;
case 2:
System1 = new CsvWriter("E:\\result\\System1in condition that gama="+tg+"+", beta ="+tb+".csv");
System2 = new CsvWriter("E:\\result\\System2in condition that gama="+tg+"+", beta ="+tb+".csv");
System3 = new CsvWriter("E:\\result\\System3in condition that gama="+tg+"+", beta ="+tb+".csv");
break;
default:
System1 = new CsvWriter("E:\\result\\System1in condition thatbeta ="+tb+", gama="+tg+"+".csv");
System2 = new CsvWriter("E:\\result\\System2in condition thatbeta ="+tb+", gama="+tg+"+".csv");
System3 = new CsvWriter("E:\\result\\System3in condition thatbeta ="+tb+", gama="+tg+"+".csv");
break;
另外,文件名中,不可以有逗号等系统不允许的符号
switch(i):{
case 1:
System1 = new CsvWriter("E:\\result\\System1in condition that beta ="+tb+", gama="+tg+"+".csv");
System2 = new CsvWriter("E:\\result\\System2in condition thatbeta ="+tb+", gama="+tg+"+".csv");
System3 = new CsvWriter("E:\\result\\System3in condition thatbeta ="+tb+", gama="+tg+"+".csv");
break;
case 2:
System1 = new CsvWriter("E:\\result\\System1in condition that gama="+tg+"+", beta ="+tb+".csv");
System2 = new CsvWriter("E:\\result\\System2in condition that gama="+tg+"+", beta ="+tb+".csv");
System3 = new CsvWriter("E:\\result\\System3in condition that gama="+tg+"+", beta ="+tb+".csv");
break;
default:
System1 = new CsvWriter("E:\\result\\System1in condition thatbeta ="+tb+", gama="+tg+"+".csv");
System2 = new CsvWriter("E:\\result\\System2in condition thatbeta ="+tb+", gama="+tg+"+".csv");
System3 = new CsvWriter("E:\\result\\System3in condition thatbeta ="+tb+", gama="+tg+"+".csv");
break;
另外,文件名中,不可以有逗号等系统不允许的符号
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯