Your peer has written a piece of Java code that prints a greeting message to the console. However, they seem to have scrambled the order of the code lines in the rush. Your task is to reorder the lines so they form a properly structured and functional Java program. Don't forget the best practices in coding style conventions concerning indentions when rearranging the lines.
Coding style conventions
Unscramble the greeting message program
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
public class HelloWorld {
}
System.out.println(greeting);
}
public static void main(String[] args) {
String greeting = "Hello, World!";
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
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.