Skip to content

Commit

Permalink
Renamed loop variable for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Petliuk committed Sep 5, 2024
1 parent 73c71bf commit 37f405d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/core/basesyntax/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
public class MainApp {
public static void main(String[] args) {
Machine[] machines = {new Bulldozer(), new Excavator(), new Truck()};
for (Machine m : machines) {
m.doWork();
m.stopWork();
for (Machine machine : machines) {
machine.doWork();
machine.stopWork();
}
}
}

0 comments on commit 37f405d

Please sign in to comment.