diff --git a/buldozer.java b/buldozer.java index 00f5e9ad7..aaf7421a0 100644 --- a/buldozer.java +++ b/buldozer.java @@ -1,10 +1,10 @@ class Bulldozer extends Machine { public void doWork() { - System.out.println("The Buldozer started working."); + System.out.println("The Bulldozer started working."); } public void stopWork() { - System.out.println("The Buldozer stopped working."); + System.out.println("The Bulldozer stopped working."); } } diff --git a/main.java b/main.java index 77053a8d5..478b1b917 100644 --- a/main.java +++ b/main.java @@ -1,6 +1,6 @@ class Main { public static void main(String[] args) { - Machine[] machines = {new Truck(), new Buldozer(), new Excavator()}; + Machine[] machines = {new Truck(), new Bulldozer(), new Excavator()}; for (int i = 0; i < machines.length; i++) { machines[i].doWork(); machines[i].stopWork();