Thread: Please help with error

Results 1 to 2 of 2
  1. #1 Please help with error 
    Registered Member wuperr's Avatar
    Join Date
    Dec 2009
    Posts
    268
    Thanks given
    193
    Thanks received
    12
    Rep Power
    27
    I fail at java.

    Gui.java:99: 'else' without 'if'
    else
    ^
    1 error
    Press any key to continue . . .

    The red line is line 99.
    Code:
      public final void keyPressed(KeyEvent paramKeyEvent)
      {
        int i = paramKeyEvent.getKeyCode();
        KeyEvent localKeyEvent1 = paramKeyEvent;
        if (i == 17)
        {
          this.add[0] = true;
        }
        else
        {
          localKeyEvent2 = paramKeyEvent;
          if (i == 16);
          {
            this.add[1] = true;
          }
          else
          {
            localKeyEvent3 = paramKeyEvent;
            if (i == 18);
              this.add[2] = true;
          }
        }
    Reply With Quote  
     

  2. #2  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    Remove those semicolons on lines 95 and 102

    Attached image

    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •