diff options
| author | mo khan <mo@mokhan.ca> | 2019-08-05 13:31:02 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2019-08-05 13:31:02 -0600 |
| commit | d8e4543b237a0aa2ca96e9d3653893ea6e46f75e (patch) | |
| tree | bc2002eb12433c0e810e9fb23fb1e44e31f05367 /src/Q9/MovingRobot.java | |
| parent | a384817ca5137042eb83f40f52f9e4cd1036a389 (diff) | |
use the new line constant
Diffstat (limited to 'src/Q9/MovingRobot.java')
| -rw-r--r-- | src/Q9/MovingRobot.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Q9/MovingRobot.java b/src/Q9/MovingRobot.java index c1ffe42..c982250 100644 --- a/src/Q9/MovingRobot.java +++ b/src/Q9/MovingRobot.java @@ -53,7 +53,7 @@ public class MovingRobot extends Robot { else if (y.getX() == row && y.getY() == column) grid += "|Y"; else grid += "| "; } - grid += "|\n"; + grid += String.format("|%s", System.lineSeparator()); } return grid; |
