Hello, Java

Report a typo

Write a simple program that includes the main method.

Your class must be named Main if it is public; otherwise, it may have any name. It's a restriction of the platform, not Java.

The program should print the following text:

Hello, Java!
Write a program in Java 17
class Main {
public static void main(String[] args) {
// put your code here
}
}
___

Create a free account to access the full topic