Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    1,985

    Re: Simple scanner problem

    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 =...
  2. Replies
    4
    Views
    1,985

    Re: Simple scanner problem

    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...
Results 1 to 2 of 2