Results 1 to 4 of 4
  1. #1
    Mirr0ge is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default I need some help here plz

    Hey guys

    I've just started learning Java and am following this tutorial and when I start compiling I get this error message:
    First.java:2: <identifier> expected
    Public static void main <String args [] {

    As for the program this was it :
    class First {
    Public static void main (String args[]) {
    System.out.println("Welcome to Java world.");
    }
    }


    Can someone explain to me what's wrong in peoples language : P since I've just started I don't understand all the terms yet ^^
    If possible write down the correction beneath the explanation.

    Thank You Very Much!!!! = D

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    In people's language: you must take care to use correct spelling and capitalization for all your java code. It's public, not Public.

  3. #3
    Mirr0ge is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default

    Thank You so much! I've wasted so much times on this.
    Thanks aggain : )

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by Mirr0ge View Post
    Thank You so much! I've wasted so much times on this.
    Thanks aggain : )
    You're welcome. Were all questions here so easy to answer. Best of luck with your studies and welcome to the java-forums!

Posting Permissions

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