I'm trying to create an array to collect students, and a grades array for each student. My int count will increment with a while loop or something. The problem is my Students array gets an error. Is there an alternative method?
static int count = 0;
static int[] Grades = new int[count];
static String[] Students = new String[Grades[count];
Studentclass and then use aStudent[]or aList<Student>.Map<Student, Grade>countset to 0, you'll always have a zero-length array, which you can never index into.