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 14 of 14

Thread: HELP BEGINNERS

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HELP BEGINNERS

    {
    public static void main (string args [ ])
    {
    system.out.println ("I am a Beginners");
    }
    }

    hi guys what i wrote in above is it correct? ...am just starting programming and please help me out...


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,332
    Thanks
    181
    Thanked 829 Times in 772 Posts
    Blog Entries
    5

    Default Re: HELP BEGINNERS

    hi guys what i wrote in above is it correct?
    You tell us...does it compile? Does it work properly? Suggested reading:
    http://www.javaprogrammingforums.com...-get-help.html

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP BEGINNERS

    Quote Originally Posted by copeg View Post
    You tell us...does it compile? Does it work properly? Suggested reading:
    http://www.javaprogrammingforums.com...-get-help.html
    i dont have a PC....i read that in a book where it is written HELLO WORLD, is there any chance of knowing without a pc?

  4. #4
    Junior Member
    Join Date
    Jan 2011
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP BEGINNERS

    If you don't have PC then how are you posting ? just curious

  5. #5
    Junior Member
    Join Date
    Oct 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP BEGINNERS

    Quote Originally Posted by javabuddy View Post
    If you don't have PC then how are you posting ? just curious
    from my Smartphone

  6. #6
    Junior Member
    Join Date
    Oct 2011
    Posts
    11
    My Mood
    Amazed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP BEGINNERS

    You should invest in a pc

  7. #7
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: HELP BEGINNERS

    To gain the better understanding of concepts, you must implement what you read. By the why, you can still predict if the given code will compile and run successfully or not, and that is only possible if you have enough knowledge of development.

    In this case, you program will never compile. There are many errors (Syntax errors). So, it's recommended to invest to buy a computer for your experience of development. Good Luck

  8. #8
    Junior Member
    Join Date
    Oct 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP BEGINNERS

    funny thing is only after getting my phone am interested in coding an app for my phone ....damn money!!!

  9. #9
    Junior Member
    Join Date
    Oct 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP BEGINNERS

    Quote Originally Posted by Mr.777 View Post
    To gain the better understanding of concepts, you must implement what you read. By the why, you can still predict if the given code will compile and run successfully or not, and that is only possible if you have enough knowledge of development.

    In this case, you program will never compile. There are many errors (Syntax errors). So, it's recommended to invest to buy a computer for your experience of development. Good Luck
    can you please write the correct one ...I really wanted to know.

  10. #10
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,332
    Thanks
    181
    Thanked 829 Times in 772 Posts
    Blog Entries
    5

    Default Re: HELP BEGINNERS

    See the following link: Lesson: A Closer Look at the "Hello World!" Application (The Java™ Tutorials > Getting Started)\
    And if you want to learn to program, as the others have said - you need to invest in a computer.

  11. #11
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: HELP BEGINNERS

    Quote Originally Posted by javabeginners View Post
    can you please write the correct one ...I really wanted to know.
    Read the copeg's post and visit the links. You will get your answer.

  12. #12
    Junior Member
    Join Date
    Jul 2011
    Location
    PUNE/MUMBAI
    Posts
    5
    My Mood
    Busy
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP BEGINNERS

    Dear......

    What Others have said is true.......unless you implement the code.......you wont be able to understand how it works or why it works the way it works......
    Anyway.....answer to your question is this......
    -------------------------------------------------------------------------

    public static void main (string args [ ]){

    system.out.println ("I am a Beginner");

    }

    ---------------------------------------------------------------------------------------
    I think that two parenthesis were out of order other than that one spealing mistake........
    and everything else is correct......
    ------------------------------------------------
    Go pursue Java and do it on a computer.
    Regards,
    Ashishkumar.

  13. #13
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: HELP BEGINNERS

    @ashish: You know your program has many syntax errors?
    Use code tags and proper formatting.

  14. #14
    Junior Member
    Join Date
    Nov 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP BEGINNERS

    Mr. 777 is correct.

    It should be more along the lines of:

    public class whateverYouWantToCallThis
    {
    tabpublic static void main(String args[])
    tab{
    tabtabSystem.out.println("I am a beginner.");
    tab}
    }

    ...Although I'm also a beginner, so I may be wrong. Anyway, you were mostly right! Just make sure to pay attention to your cases since java is a case-sensitive language. Good luck with the learning, dude.
    Last edited by moonchild; November 15th, 2011 at 11:53 AM.

Similar Threads

  1. package for Beginners
    By god1gracious in forum Java Theory & Questions
    Replies: 3
    Last Post: October 4th, 2011, 09:24 PM
  2. where is the java tutorial for beginners
    By javaque in forum Java Theory & Questions
    Replies: 2
    Last Post: September 14th, 2011, 03:30 AM
  3. YAY for beginners
    By derbya in forum Member Introductions
    Replies: 2
    Last Post: August 16th, 2011, 04:54 AM
  4. problem completing beginners' gui tutorial
    By mechnik in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 18th, 2011, 03:53 PM
  5. [SOLVED] Books and sources for Java beginners
    By chronoz13 in forum Java Theory & Questions
    Replies: 1
    Last Post: April 15th, 2009, 08:36 AM