OK, here is all the code.
import static java.lang.System.out;
import java.util.Scanner;
public class StuTestAnn
{
private static Scanner keyboard = new Scanner(System.in);
public static void main(String[] args)
{
int students;
int tests;
int[][] testScores; // [students][tests]
String[] stuNames;
testScores = createArray();
if(testScores != null)
{
stuNames = new String[testScores.length];
populateNames(stuNames);
populateTestScores(stuNames,testScores);
// printStudentReport(stuNames,testScores);
// printTestReport(stuNames,testScores);
out.println("\n\nGoodbye!\n\n");
}
else
{
out.println("Array not successfully created - exiting");
}
}
// Code your 5 methods below...
//createArray
public static int[][] createArray()
{
int[][] theArray;
theArray = new int[students][tests];
return theArray;
}
//populateNames
public static void populateNames(String[]theNames)
for (i=0;i<test.length;i++)
{
system.out.println("Please enter the student's name.");
theName[i]= keyboard.next;
system.out.println(theName[i]);
}
//populateTestScores
public static void populateTestScores(int[][]theScores)
for (i=0; i<tests.length; i++)
{
for(j=0;j<tests[0].length;j++)
{
system.out.println("Please enter
test score.");
tests[i] = keyboard.nextInt();
}
}
}