I am new to programming in Java and am trying to compile a Java source file but I keep getting the following message when I type javac Welcome.java
Welcome.java:5: error: cannot find symbol
System.out.println("Welcome to Java!");
^
symbol: method printIn<String>
location: variable out of type PrintStream
1 error
any ideas on how to correct this?
Thanks.
Java is a strongly case-sensitive language!Any mis-spellings or mis-typings will land you to erranous error.Take care from the next time DEAR,though,it's expected from you as a beginner in Java---you'll learn with time after getting these error messages.
The correct syntax for printing out a statement in Java is
System.out.println("Print here whatever you wanna print!");
The error which you are getting is all because you have mis-typed printIn
instead of println
----see I
instead of l
(alphabet el
should have been there,not ahy
)!