I am just wondering if it is possible to have a public static array that can be accessed and edited by all classes.
To see if it works I have tried to access it but I just get an error.
public class FileManager {
public static String[][] cassetteArray = new String[10][6];
}
The command I use to check if it works is;
FileManager.cassetteArray[0][1].length();
Instead I get the following error;
Exception in thread "main" java.lang.NullPointerException
at AssignmentStage1.UserInterface.userMenu(UserInterface.java:35)