My code was as follows;
class MyFirstJavaProgram
{
public static void main(Stirng[]args)
{
System.out.printIn("This is My First Java Program");
}
}
But when I compiled it it gave an error message as follows;
[error code] My First Java Program.java:5:cannot find symbol
symbol: method prinyIn (java.lang.string)
location: class java.io.PrintStream
System.out.printIn("This is my first Java Program")
/\
1 error
[/error code]
Please tell me where I have gone wrong and how I could rectify it. I felt really helpless when my firstever code went wrong.

New Topic/Question
Reply



MultiQuote






|