Results 1 to 5 of 5

Thread: Error message

  1. #1
    Evana's Avatar
    Evana is offline Member
    Join Date
    Nov 2016
    Location
    Belgium
    Posts
    7
    Rep Power
    0

    Exclamation Error message

    Hi

    I'm new to the forum so if I'm making any mistakes by just writing this here then I'm sorry.

    I have just installed IntelliJ and am trying to write my first Java program but I'm already failing.

    I made a screenshot of what it's saying, like I said, I'm completely new to this so if anyone can help me figure out what this means I would be eternally grateful


    Error message-error_intellij.jpg

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

    Default Re: Error message

    What is that semi-colon doing there? It should be:
    Java Code:
    public static void main(String[] args) { // <-- no semi-colon here
       // body here ...
    }
    Also read what the compiler is trying to tell you.

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

  3. #3
    Evana's Avatar
    Evana is offline Member
    Join Date
    Nov 2016
    Location
    Belgium
    Posts
    7
    Rep Power
    0

    Default Re: Error message

    Thanks I will try to read more of the basic java syntax before I ask stupid questions I feel such a newbie

  4. #4
    Evana's Avatar
    Evana is offline Member
    Join Date
    Nov 2016
    Location
    Belgium
    Posts
    7
    Rep Power
    0

    Default Re: Error message

    Quote Originally Posted by JosAH View Post
    What is that semi-colon doing there? It should be:
    Java Code:
    public static void main(String[] args) { // <-- no semi-colon here
       // body here ...
    }
    Also read what the compiler is trying to tell you.

    kind regards,

    Jos

    I see that you are from the netherlands, dus spreek je nederlands? ik ben van vlaanderen, belgie. Kleine wereld, bedankt voor je snelle antwoord, werkt nu perfect.

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,422
    Blog Entries
    7
    Rep Power
    28

    Default Re: Error message

    Quote Originally Posted by Evana View Post
    I see that you are from the netherlands, dus spreek je nederlands? ik ben van vlaanderen, belgie. Kleine wereld, bedankt voor je snelle antwoord, werkt nu perfect.
    Ja hoor, ik spreek nederlands; van m'n ouders geleerd om de een of andere reden; but English is considered the lingua franca here. so we'd better stick to it; there are people from all over the world here ...

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Need help with error message!
    By cstampar in forum New To Java
    Replies: 2
    Last Post: 12-04-2011, 08:52 PM
  2. Error Message
    By Bimz in forum New To Java
    Replies: 2
    Last Post: 09-11-2011, 02:01 PM
  3. 'else' without 'if' error message
    By jim01 in forum New To Java
    Replies: 6
    Last Post: 04-22-2011, 10:10 PM
  4. error message
    By tri.yudhanto in forum JDBC
    Replies: 0
    Last Post: 01-13-2011, 02:20 PM
  5. Error Message????
    By Cubba27 in forum New To Java
    Replies: 11
    Last Post: 11-21-2009, 03:46 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
  •