Hi, at the momeny i am trying to create an interactive sketch that uses imported data from a .txt file. I have created an array of class Info called states, but when i try to access a method from the class, i am shown the error NullPointerException. I am wondering why the program cannot access the information and is giving me this error. The code is the following:
// Arrays to hold data
int num = 49;
Info states[] = new Info[num];
String[] data, rawText;
float[] points;
String c, z;
float x, y;