Ahh, i see your problem. You initialized an array of states, but the array contains all nulls. Change that line of code to this (line 65):
a[lineNum].name = new State();
a[lineNum].name =...
Type: Posts; User: helloworld922
Ahh, i see your problem. You initialized an array of states, but the array contains all nulls. Change that line of code to this (line 65):
a[lineNum].name = new State();
a[lineNum].name =...
I'd say it's cause a hasn't been declared. Other than that, I can't really see anything else wrong (I'm assuming you're closing the curly brackets at the bottom somewhere, and have the appropriate...