Fixing the main method

Report a typo

Given a program that should print "Hello, Java!" but won't compile, fix the program.


Write a program in Java 17
class Main {

public static int main(String[] args) {
System.out.println("Hello, Java!");
}
}
___

Create a free account to access the full topic