Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.41 seconds.

  1. Replies
    5
    Views
    1,709

    Re: Symbol not found error

    That shouldn't even compile.

    } else if()) {

    Not only is the if statement empty, but there is an extra bracket.
    Furthermore:

    private string line;

    string should be a capital S: String
  2. Replies
    5
    Views
    1,709

    Re: Symbol not found error

    Most likely because typeH has not been initalized. Look at this code:

    if(input.nextLine().toLowerCase().contains("s")) {
    typeH = "salaried";
    } else...
  3. Replies
    5
    Views
    1,709

    Re: Symbol not found error

    There is no variable named type, perhaps you meant to use typeH instead.
    Also, it is almost never a good idea to compare String with ==. String are objects, so you should use the .equals() method...
Results 1 to 3 of 3