import java.util.Scanner;
Public class Main
{
Public static void main (String [] args)
{
Scanner scoreJava=new Scanner (System. In);
String [] scoreArr=new String [6].
//receive input Numbers, the Numbers in the array
For (int I=0; I & lt;=scoreArr. Length - 1; I++)
{
//for each input output
System. Out. Println (" please input the name in turn "+ (I + 1) +" time, student's result ");
//the corresponding index value=receive numerical
ScoreArr. [I]=scoreJava nextLine ();
}
For (int I=0; I & lt; ScoreArr. Length; I++)
{
System. The out. Println (scoreArr [I]);
}
}
}
Com.com pany. Main
Please input the name in turn one student achievement
Ren Wang 12 12 12 12 12
Please input the name in turn two student performance
123 123 123 123 123 Ren Wang
Please input the name in turn three student performance
Ren Wang 123456
Please input the name in turn four student's result
And foreign oh
Please input the name in turn five student performance
4554
Please input the name in turn 6 student performance
I 7894 to the
Ren Wang 12 12 12 12 12
123 123 123 123 123 Ren Wang
Ren Wang 123456
And foreign oh
4554
I 7894 to the
Input the names of the students grade and ranked according to subjects now just do the storage card to use 2 d array
CodePudding user response:
You this is just a one dimensional array? Want to calculate each of every subject? That have to be stored for at least two nested for it