Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2015
    Location
    new delhi, India
    Posts
    3
    Rep Power
    0

    Exclamation want to know the reason for errors

    here i am, working in java from last 1 month, and still it frustrates me that i still can't figure out what exactly in the code is causing the error.
    I am uploading a latest code and plzz help me to figure out what am i missing when it says " ERROR: ILLEGAL START OF EXPRESSION IN MAIN FUNCTION", and "try and catch" in every code i write its there.

    here is the code, please don't judge as i am a rookie right now in this programming world..............

    and a screenshot of error message is also there............

    and right now i am using cmd for the same, please dont advise for other IDE, i have NetBeans, but for now i am sticking to basics.

    hope for some help soon, all you coders out there.
    cheers
    Attached Thumbnails Attached Thumbnails want to know the reason for errors-capture.png  
    Attached Files Attached Files

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: want to know the reason for errors

    ERROR: ILLEGAL START OF EXPRESSION IN MAIN FUNCTION
    Can you copy the full text of the error message and paste it here?

    Also post the source code where the error happens. Be sure to wrap the code in code tags.

    There is something out of place in the code that is confusing the compiler.

    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 4
    Last Post: 01-04-2011, 12:36 AM
  2. Replies: 3
    Last Post: 03-08-2009, 01:51 AM
  3. Getting errors for some reason
    By Swarvy in forum New To Java
    Replies: 7
    Last Post: 09-30-2008, 02:45 PM

Tags for this Thread

Posting Permissions

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