// Grades.java
Don't use plagiarized sources. Get Your Custom Essay on
Question & Answer: SUMMER 2017 Page 5 BONUS: Declare a 2D array that will store the class which should tell you which is the row and which is the column. (5 points) Prom…..
GET AN ESSAY WRITTEN FOR YOU FROM AS LOW AS $13/PAGE
import java.util.Scanner;
public class Grades {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
//Enter name and grade and save in an array
Scanner input = new Scanner(System.in);
String [][] grade = new String [2][9];
for (int i = 0; i < 2; i++)
{
for (int j = 0; j < 9; j++)
{
System.out.print(“Enter the grade for assignment ” + (j+1) + ” of java class ” + (i+1) + “: “);
grade[i][j] = input.nextLine();
}
}
for (int i = 0; i < 2; i++)
{
System.out.print(“Java class ” + (i+1) + ” grades: “);
for (int j = 0; j < 9; j++)
{
System.out.print(grade[i][j] +” “);
}
System.out.println();
}
}
}
