Skip to content

Commit

Permalink
made messages more informative
Browse files Browse the repository at this point in the history
  • Loading branch information
o-bihun committed Sep 7, 2024
1 parent c411224 commit 6ad4615
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 @@ -4,11 +4,11 @@ public class Bulldozer extends Machine {

@Override
public void doWork() {
System.out.println("Bulldozer started its work");
System.out.println("Bulldozer is working.");
}

@Override
public void stopWork() {
System.out.println("Bulldozer stopped working");
System.out.println("Bulldozer has stopped working.");
}
}
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 @@ -4,12 +4,12 @@ public class Excavator extends Machine {

@Override
public void doWork() {
System.out.println("Excavator started its work");
System.out.println("Excavator is working.");
}

@Override
public void stopWork() {
System.out.println("Excavator stopped working");
System.out.println("Excavator has stopped working.");
}

}
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 @@ -4,11 +4,11 @@ public class Truck extends Machine {

@Override
public void doWork() {
System.out.println("Truck started its work");
System.out.println("Truck is now working on transporting goods.");
}

@Override
public void stopWork() {
System.out.println("Truck stopped working");
System.out.println("Truck has finished transporting goods and is now stopped.");
}
}

0 comments on commit 6ad4615

Please sign in to comment.