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

Thread: Please help me to compile my first program in Java

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Please help me to compile my first program in Java

    hello
    I made my first program in Java and I try to compile it using cmd but unfortunatelly result of this

    symbol: method printIn(String)
    location: variable out of type PrintStream
    How can I fix it?

    The code That I wrote it was:
    class hello {
    public static void main (String args []){
    System.out.PrintIn("hello");
    }
    }
    I save it in this mode hello.java


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,034
    My Mood
    Mellow
    Thanks
    184
    Thanked 646 Times in 633 Posts

    Default Re: Please help me to compile my first program in Java

    Welcome to the forum! Please read this topic to learn how to post code correctly and other useful info for new members.

    Please refer to the link above and post your code correctly.

    As you were told in your previous post, Java is case sensitive. 'Println()' is not the same as 'println()', and the latter is correct. Notice also that it's println() with a small 'L', not a capital (or small) 'I'.

    Not an error, but by convention in Java class names are capitalized.

Similar Threads

  1. Why won't my program compile?
    By Techstudent in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 14th, 2014, 04:48 AM
  2. Replies: 2
    Last Post: January 11th, 2014, 05:58 AM
  3. Can't compile program!
    By Spanky_10 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: March 6th, 2013, 02:04 PM
  4. Replies: 8
    Last Post: February 12th, 2013, 04:45 AM
  5. [SOLVED] Compile a set of java files for a sudoku program
    By kanishk.dudeja in forum Java Theory & Questions
    Replies: 7
    Last Post: June 16th, 2011, 09:54 AM