Results 1 to 4 of 4
  1. #1
    Macca07 is offline Member
    Join Date
    Nov 2008
    Posts
    9
    Rep Power
    0

    Default Illegal Start of expression

    Can anyone help me.

    These are the errors I'm getting

    Comm_Trace_Panel.java:15: '[' expected
    final long TraceLevel = new long();
    ^
    Comm_Trace_Panel.java:15: illegal start of expression
    final long TraceLevel = new long();
    ^
    Comm_Trace_Panel.java:15: ']' expected
    final long TraceLevel = new long();
    ^

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,385
    Blog Entries
    7
    Rep Power
    20

    Default

    You can't create a new primitive long (lowercase ell) with the 'new' operator.

    kind regards,

    Jos

  3. #3
    Macca07 is offline Member
    Join Date
    Nov 2008
    Posts
    9
    Rep Power
    0

    Default

    Thanks Jos

  4. #4
    Join Date
    Nov 2009
    Posts
    22
    Rep Power
    0

    Default

    this Erorr for me. thank you
    :D I'm from vietnam - I hope you help me :D

Similar Threads

  1. Illegal start of expression
    By Basit56 in forum New To Java
    Replies: 2
    Last Post: 08-18-2009, 09:12 AM
  2. Illegal Start of an Expression
    By ddatta8 in forum New To Java
    Replies: 3
    Last Post: 12-20-2008, 08:40 PM
  3. Illegal Start of Expression
    By vince425 in forum New To Java
    Replies: 3
    Last Post: 10-18-2008, 07:41 AM
  4. illegal start of expression
    By razmyasdfg in forum CLDC and MIDP
    Replies: 2
    Last Post: 07-27-2008, 10:44 PM
  5. Illegal start of expression
    By gabriel in forum New To Java
    Replies: 2
    Last Post: 08-01-2007, 05:09 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
  •