Using a text editor, type the following program. Name your file Welcome.java. From the command prompt, issue the command to compile your Java program, javac Welcome.java If there are any syntax errors, fix them and then recompile the program. When there are no more syntax errors, issue the command to run your program, java Welcome.
public class Welcome
{
public static void main(String[] args)
// Display a welcome message
System.out.println("Welcome to Java!");
} // end main
} // end Welcome
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here