Skip to content

Commit

Permalink
small changes number two
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGizmen committed Oct 3, 2024
1 parent 5a3b993 commit 93626c1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main/java/core/basesyntax/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

public class MainApp {
public static void main(String[] args) {
Machine truck = new Truck("Katarzyna");
Machine bulldozer = new Bulldozer("Eduardo");
Machine excavator = new Excavator("Maks");

Machine truck = new Truck("Katarzyna");
Machine bulldozer = new Bulldozer("Eduardo");
Machine excavator = new Excavator("Maks");

Machine[] machines = {truck, bulldozer, excavator};
printTotal(machines);
Machine[] machines = {truck, bulldozer, excavator};
printTotal(machines);
}

private static void printTotal(Machine[] machines) {
Expand All @@ -17,4 +16,4 @@ private static void printTotal(Machine[] machines) {
machine.stopWork();
}
}
}
}

0 comments on commit 93626c1

Please sign in to comment.