[REPORTED] Learn Java: Methods: Calling Methods - Missing Information

Course URL: https://www.codecademy.com/courses/learn-java/lessons/learn-java-methods/exercises/calling-methods

In the example above, we call the startEngine() method on the myFastCar object. This method call occurs inside the main() method. Running the program results in printing Vroom! to the output terminal.

The last sentence should be corrected to the following since the startEngine() method prints two statements.

Running the program results in printing Starting the car! and Vroom! to the output terminal.

public void startEngine() {
    System.out.println("Starting the car!");
    System.out.println("Vroom!");
}
3 Likes

Nice catch @dr_victoria!

I will write out a report now.

EDIT:

Report has been sent :slightly_smiling_face:

2 Likes