Fixing a scrambled program

Report a typo

You have a scrambled code snippet for a basic Java program that should print Hello, World! to the console. Your task is to reorder these lines while following the best practices for indentation in Java coding style conventions. Make sure the program compiles and runs correctly afterward.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                public static void main(String[] args) {
              
                System.out.println("Hello, World!");
              
                public class HelloWorld {
              
                }
              
                }
              
___

Create a free account to access the full topic