A version of the HelloWorld.java program was carelessly written by a student (see below). In writing the program, the student:
Identify the mistakes in this code.
/**
* HelloWorld.java
* @author Richard White
* @version 2020-08-02
public HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, World!");
}
/**
* HelloWorld.java
* @author Richard White
*/
public class HelloWorld
{
public static main(String] args)
{
System.out.println("Hello, World!");
}
}
/**
* HelloWorld.java
* @author Richard White
* @version 2020-08-02
*/
{
public static void main(String[] args)
{
System.println("Hello, World!")
}
}
/**
* HelloWorld.java
* @author Richard White
* @version 2020-08-02
*/
public class HellWorld
{
{
System.out("Hello, World!");
}
}