I have the following code:
public static void main(String[] args) { try { String[] studentnames = { /* this is an array of 9000 strin
I would read the students names from a file however one work around which will make the class smaller as well
String[] studentnames= "Student names is an array of :9000".split(" ");
Instead of defining and using 9000 strings, this uses just one. The limit for a single String is just over 2 billion.