You're developing a basic Java program that will output a greeting message to the console. Given the partial code, fill in the blanks to complete a Java program that will print the phrase "Hello, World". Use appropriate methods and keywords to declare the main entry point of the Java program and print the message.
Printing data
Completing a code to display a greeting message
Report a typo
Fill in the gaps with the relevant elements
HelloWorld {
public static void main([] args) {
String greeting = "Hello, World";
(greeting);
}
}Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.