Results 1 to 3 of 3
  1. #1
    JavaNoob1998 is offline Member
    Join Date
    Apr 2011
    Posts
    4
    Rep Power
    0

    Default My first program...

    Hi all,


    Thanks in advance for all your help. Im trying to learn to program in java, and its my first programming language. Im working on a macbook and using different books as reference. Im writing my simple code in "JEdit" and running javac from the terminal.

    This is the source code:

    class ILoveJava {
    public static void main(String[] args) {
    System.out.printIn("I Love Java!");
    }
    }

    and this is the error message:


    java.java:3: cannot find symbol
    symbol : method printIn(java.lang.String)
    location: class java.io.PrintStream
    System.out.printIn("I Love Java!");
    ^
    1 error


    If you could please point me out what my mistake is and how im able to fix it, id be more than grateful. Hopefully ill be knowledgeable enough one day to help others in my position.

    Yours.

  2. #2
    UJJAL DHAR is offline Senior Member
    Join Date
    Apr 2010
    Location
    Dhaka,Bangladesh
    Posts
    180
    Rep Power
    0

    Default

    System.out.printIn("I Love Java!");
    this is incorrect. Correct one is
    Java Code:
    System.out.println("I love java!")
    Regards
    Ujjal

  3. #3
    JavaNoob1998 is offline Member
    Join Date
    Apr 2011
    Posts
    4
    Rep Power
    0

Similar Threads

  1. Replies: 13
    Last Post: 03-22-2011, 06:49 AM
  2. changing my program to array working program
    By Chewart in forum New To Java
    Replies: 39
    Last Post: 11-18-2009, 06:53 PM
  3. Executing a program within a program
    By gibsonrocker800 in forum New To Java
    Replies: 5
    Last Post: 05-12-2008, 08:24 AM
  4. Replies: 0
    Last Post: 04-04-2008, 02:40 PM
  5. Replies: 0
    Last Post: 10-04-2007, 09:33 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
  •