Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/java/core/basesyntax/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

public class MainApp {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This violates checklist item: "Please don't add redundant empty lines to your code." Remove the empty line after the class declaration.

private MainApp() {
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This violates checklist item: "Please don't add redundant empty lines to your code." Remove the empty line after the method signature.

public static void main(String[] args) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This violates checklist item: "Use abstract references instead of specific ones where possible" and the task requirement to instantiate an array (or collection) of Machine references containing Truck, Bulldozer, and Excavator instances. You must create such an array and use it in main().

System.out.println("Java is the best");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This violates the core functional requirement: In main(), you must iterate over the Machine array and call doWork() and stopWork() on each element. Currently, you only print a placeholder message.

}
}
Loading