Skip to content

Commit

Permalink
fix messages in the methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarmadev committed Aug 16, 2024
1 parent abb41c4 commit 8488e8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/java/core/basesyntax/Bulldozer.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
public class Bulldozer extends Machine {
@Override
public void doWork() {
System.out.println("Bulldozer started work");
System.out.println("Machine \"Bulldozer\" started work");
}

@Override
public void stopWork() {
System.out.println("Bulldozer stopped work");
System.out.println("Machine \"Bulldozer\" stopped work");
}
}
4 changes: 2 additions & 2 deletions src/main/java/core/basesyntax/Excavator.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
public class Excavator extends Machine {
@Override
public void doWork() {
System.out.println("Excavator started work");
System.out.println("Machine \"Excavator\" started work");
}

@Override
public void stopWork() {
System.out.println("Excavator stopped work");
System.out.println("Machine \"Excavator\" stopped work");
}
}
4 changes: 2 additions & 2 deletions src/main/java/core/basesyntax/Truck.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
public class Truck extends Machine {
@Override
public void doWork() {
System.out.println("Truck started work");
System.out.println("Machine \"Truck\" started work");
}

@Override
public void stopWork() {
System.out.println("Truck stopped work");
System.out.println("Machine \"Truck\" stopped work");
}
}

0 comments on commit 8488e8f

Please sign in to comment.