There was an error while loading. Please reload this page.
1 parent 66fb0f2 commit d00878dCopy full SHA for d00878d
1 file changed
src/main/java/core/basesyntax/MainApp.java
@@ -2,6 +2,7 @@
2
3
public class MainApp {
4
public static void main(String[] args) {
5
+
6
Machine[] machines = {new Truck(), new Bulldozer(), new Excavator()};
7
for (Machine machine : machines) {
8
machine.doWork();
0 commit comments