Results 1 to 4 of 4
  1. #1
    javaprobie is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

    Default method selector error

    I just started learning java and I have run into this error message:

    HelloWorld.java:5: cannot find symbol
    symbol : method print1n(java.lang.String)
    location: class java.io.PrintStream
    System.out.print1n("hello world");
    ^
    1 error

    when I run this code:

    public class HelloWorld
    {
    public static void main(String [] args)
    {
    System.out.print1n("hello world");
    }
    }

    can anyone tell me why I am getting this error mesage?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  3. #3
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,755
    Rep Power
    7

    Default

    Java Code:
    public void print1n() {
        System.out.print("n");
    }
    ;)

  4. #4
    javaprobie is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

Similar Threads

  1. what does this error method mean?
    By berkeley in forum New To Java
    Replies: 1
    Last Post: 06-03-2010, 11:19 AM
  2. toString() method error?
    By blueduiker in forum New To Java
    Replies: 6
    Last Post: 02-07-2010, 03:19 AM
  3. Getting error when using recrusive method
    By jurka in forum New To Java
    Replies: 10
    Last Post: 02-13-2009, 03:15 AM
  4. Replies: 1
    Last Post: 02-10-2009, 10:03 AM
  5. Error with getString() method in
    By trivektor in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-14-2008, 06:30 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
  •