package shiyan4_1; import java.util.*; public class DoInput extends DoThing { DoThing nextDoThing ; public void setNext(DoThing next) { _____[代码1]_____ } public void doThing(double [] a) { System.out.println("请输入裁判数"); Scanner read=new Scanner(System.in); int count = read.nextInt(); System.out.println("请输入各个裁判的分数"); a = new double[count]; for(int i=0;i<count;i++) { a[i]=read.nextDouble(); } nextDoThing.doThing(a); } }
时间: 2023-07-16 17:15:53 浏览: 234
shiyan.rar_Rpt_Hour_shiyan.58.vom
在代码1处应该填写:
```
nextDoThing = next;
```
这行代码的作用是将当前对象的下一个处理者设置为传入的参数对象。
阅读全文