Results 1 to 5 of 5

Thread: [RESOLVED] Error compiling "Hello World"

  1. #1

    Thread Starter
    Hyperactive Member Olly79's Avatar
    Join Date
    May 2005
    Posts
    264

    Resolved [RESOLVED] Error compiling "Hello World"

    Hi:

    Thanks for assistance, much appreciated!!!!!!!!!!!!

    Made alterations to Environment Variables and all issues resolved. However I have stumbled upon another!

    Tried attempting to input the following code:

    Code:
    public class HelloWorld
    {
    public static void main(String[] args)
    {
    System.out.print1n("Hello World");
    }
    }
    When I compile using:

    javac HelloWorld.java

    I have the following error related message:

    Code:
    HelloWorld.java:5: Cannot resolve symbol
    symbol : method print1n (java.lang.String)
    location: class java.io. PrintStream
    		System.out.print1n("Hello World");
    			  ^

    This is my first program, hence "Hello World", therefore any help very much appreciated!

    Thanks

  2. #2

    Thread Starter
    Hyperactive Member Olly79's Avatar
    Join Date
    May 2005
    Posts
    264

    Re: Error compiling "Hello World"

    The thanks relates to the JDK Install Issue! forgot to mention!!!!!!!!!!!

  3. #3
    Addicted Member TBeck's Avatar
    Join Date
    Apr 2006
    Location
    Ontario, Canada
    Posts
    254

    Re: Error compiling "Hello World"

    simple problem:
    System.out.print1n("Hello World");
    u have a 1 there instead of an l

  4. #4
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Error compiling "Hello World"

    Hi,

    Your welcome...Don't forget to mark that thread as Resolved...

    Greg
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  5. #5

    Thread Starter
    Hyperactive Member Olly79's Avatar
    Join Date
    May 2005
    Posts
    264

    Re: Error compiling "Hello World"

    ooops! I thought the course reference material showed a 1!

    Once again thanks for assistance.

    p.s. any recommendations on Java books? and IDE's?

    Olly

Posting Permissions

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



Click Here to Expand Forum to Full Width