Code with style issues

Report a typo

Take a look at this small Java code snippet:

public class NumberOfSpacesExample {

    public static void main(String[] args) 
    {
        System.out.println("Hi!"  );
        System.out.println("I'm a Java program.");
    }
}

The code functions correctly but there are some styling issues that leave room for improvement. From the choices below, select all the code style issues in this code:

Select one or more options from the list

Create a free account to access the full topic