m a begineer of java programing plz tel me wats wrong in my program.

// my first program
public class HelloWorld
{
public static void main(String[] args)
{
System.out.printIn("Hello World");
}
}

it shows the error cannot find symbol.
symbol:method PrintIn(java.lang.string)
location: class java.io.printstream
system.out.printIn("helloWorld")
1 error

Recommended Answers

All Java words are case-sensitive and have to be spelled exactly correctly, so Println is not the same as println.
In your code you have printIn.
The correct version is println

Jump to Post

All 2 Replies

All Java words are case-sensitive and have to be spelled exactly correctly, so Println is not the same as println.
In your code you have printIn.
The correct version is println

Ensure that your class name and your saved file(.java) should be exactly matches with each other...you have to import the necessary packages....Also java is a case sensitive so you have to learn about that

Note:In your pgm output statement as System.out.printIn("Hello World");
You have to correct it to System.out.println("Hello World");

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.