Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
anastezia12 committed Aug 3, 2023
1 parent 3cdaad3 commit fc85171
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/core/basesyntax/MainApp.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package core.basesyntax;

import java.util.Arrays;

public class MainApp {
private static Machine[] machine = {new Truck(), new Bulldozer(), new Excavator()};

public static void main(String[] args) {

Machine[] machine = {new Truck(), new Bulldozer(), new Excavator()};
for (Machine i : machine) {
i.doWork();
}
Expand Down

0 comments on commit fc85171

Please sign in to comment.