Results 1 to 2 of 2
  1. #1
    eel
    eel is offline Member
    Join Date
    Sep 2010
    Posts
    36
    Rep Power
    0

    Exclamation '(' expected error in JAVA HELP!

    May I know what does it meant by '(' expected error?
    and it points to { in command window...

    is that meant we need to use () instead of {}?

    The code is as below:
    public class POP

    public void IOI
    { -> (THIS IS THE ERROR THAT I GOT)
    String STUDENT ID;
    String To;

    May I know what's wrong?

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,771
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by eel View Post
    May I know what does it meant by '(' expected error?
    and it points to { in command window...

    is that meant we need to use () instead of {}?

    The code is as below:
    public class POP

    public void IOI
    { -> (THIS IS THE ERROR THAT I GOT)
    String STUDENT ID;
    String To;

    May I know what's wrong?
    Is 'IOI' a method? Please do read the basic Java tutorials before you start guessing and banging more or less random code snippets.

    kind regards,

    Jos

    ps. 'IOI' is a silly name.

Similar Threads

  1. Replies: 0
    Last Post: 06-26-2009, 10:23 PM
  2. Replies: 9
    Last Post: 11-23-2008, 12:03 AM
  3. Error: myframe.java:26: ')' expected
    By barney in forum AWT / Swing
    Replies: 1
    Last Post: 07-31-2007, 08:32 PM
  4. Error: '{' expected
    By romina in forum New To Java
    Replies: 1
    Last Post: 07-26-2007, 10:34 AM
  5. My error is: ')' expected
    By silvia in forum New To Java
    Replies: 1
    Last Post: 07-18-2007, 05:49 PM

Posting Permissions

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