Home > Back-end >  Question 99
Question 99

Time:09-23

import java.util.*;
The class InputScore {
DelScore del;//here is what is in the following class as a data type, what's the role
InputScore DelScore (del) {
This. Del=del;
}
Public void inputScore () {
System. The out. Println (" the current judge number: ");
Scanner scanner=new Scanner(System.in);
Int count=scanner. NextInt ();
System. The out. Println (" please enter all the judges score: ");
Double [] a=new double (count);
for(int i=0; IA [I]=scanner. NextDouble ();
}
Del. Dodelete (a);
}
}

The class DelScore {
ComputerAver ComputerAver;
DelScore (ComputerAver ComputerAver) {
This.com puterAver=computerAver;
}

CodePudding user response:

Because of the working class is the true, the upper class is invoked in the following class methods
  • Related