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

Thread: Java 6.0 Compiler Error

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Java 6.0 Compiler Error

    I downloaded the JDK6 from Sun's site. It compiles any other thing except if I use the printIn method. Below is the error message:

    myprogram.java:3: cannot find symbol
    symbol: method printIn(java.lang.String)
    location: class java.io.PrintStream
    System.out.printIn("my own string");
    ^
    1 error

    Pls can someone tell me what is wrong. I'm less than a month doing Java.
    Thanks
    Attached Images Attached Images


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Java 6.0 Compiler Error

    The correct name of the method is println (with a lower case l as in lion).

    In the future, it's a lot easier for us to see what's going on if you copy/paste short compilable piece of code we can take a look at rather than taking a screen shot.

  3. The Following User Says Thank You to helloworld922 For This Useful Post:

    jilomes (April 19th, 2011)

  4. #3
    Junior Member
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Java 6.0 Compiler Error

    thanks! i just tried it and it compiled effortlessly. While reading the textbook i had mistaken the 'l' for 'I'.

Similar Threads

  1. Creating a Compiler in Java
    By Superstar288 in forum Java Theory & Questions
    Replies: 20
    Last Post: February 22nd, 2013, 08:05 AM
  2. How to set java compiler compliance with command under Linux
    By Eric97 in forum Java Theory & Questions
    Replies: 2
    Last Post: November 9th, 2010, 08:25 AM
  3. Why the compiler can not find the symbol?
    By AlicNewbie in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 16th, 2010, 07:16 PM
  4. setting the compiler for eclipse mac os x
    By etidd in forum Java IDEs
    Replies: 2
    Last Post: January 29th, 2010, 09:18 AM
  5. sql compiler
    By tsuki in forum JDBC & Databases
    Replies: 6
    Last Post: October 16th, 2009, 10:35 PM

Tags for this Thread