Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: L0L illegal start of expression + ; expected

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default L0L illegal start of expression + ; expected

    Here is my code what i use
    if (playerRights == 0)
                                    public void clearQInterface() {
                    for(int iD = 29164; iD <= 29177;iD++){
                            getPA().sendFrame126("", iD);
                    }
                    }
    Error :
    src\server\model\players\Client.java:1579: error: illegal start of expression
                                    public void clearQInterface() {
                                    ^
    src\server\model\players\Client.java:1579: error: illegal start of expression
                                    public void clearQInterface() {
                                           ^
    src\server\model\players\Client.java:1579: error: ';' expected
                                    public void clearQInterface() {
                                                               ^
    3 errors


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,186
    Thanks
    49
    Thanked 2,172 Times in 2,145 Posts

    Default Re: L0L illegal start of expression + ; expected

    Check that the {}s are correctly located and paired.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: L0L illegal start of expression + ; expected

    Hmm.. They do, Dont you see that on my code?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,186
    Thanks
    49
    Thanked 2,172 Times in 2,145 Posts

    Default Re: L0L illegal start of expression + ; expected

    You didn't post all of the code so I can't see if the {}s are correctly placed.


    The poor formatting of the code makes it easy to miss details.
    Methods can not be defined inside of other methods. Each method must end with a closing }
    before starting the definition of the next method.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Illegal start of expression!
    By NoobOfTheMonth in forum What's Wrong With My Code?
    Replies: 9
    Last Post: February 11th, 2013, 08:53 PM
  2. Help With illegal start of expression
    By inshal in forum What's Wrong With My Code?
    Replies: 6
    Last Post: February 9th, 2013, 12:20 PM
  3. need help with illegal start of expression
    By inshal in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 9th, 2013, 10:25 AM
  4. Help With illegal start of expression
    By RaceRed in forum What's Wrong With My Code?
    Replies: 4
    Last Post: February 7th, 2013, 08:02 PM
  5. Need HELP! Illegal start of expression & while expected..
    By Zaki in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 15th, 2012, 03:22 PM