Home > Back-end >  Java couple ask a question
Java couple ask a question

Time:10-12

Public Student2 (int CHscore, int ENscore, int MAscore, int SCscore) {
Enclosing CHscore=CHscore;
Enclosing ENscore=ENscore;
Enclosing MAscore=MAscore;
Enclosing SCscore=SCscore;
}
System. The out. Println (" input student information as required ");
for(int i=0; iSystem. The out. Print (" please input the first "+ (I + 1) +" a student of grade four families: ");
Stus [I]=new Student2 (input nextInt (), input the nextInt (), input the nextInt ());
This step is one by one manually enter


I want to make the program randomly generated four grades and fill in the
To make the following changes
for(int i=0; iThe Random rd=new Random ();
Stus [I]=new Student2 (rd. NextInt (101), rd., nextInt (101), rd., nextInt (101), rd., nextInt (101));
Why is the final output of all 0

CodePudding user response:

CodePudding user response:

Can take the full code issued to you, thank you

CodePudding user response:

reference 1st floor XGrscM response:

Can take the full code issued to you, thank you
  • Related