Add an EOL to the end of the output
This commit is contained in:
parent
7ffda12287
commit
3c1486854b
|
@ -7,7 +7,7 @@ public class HanoiServer implements CommandExecutor {
|
|||
@Override
|
||||
public String execute(String command) throws Exception {
|
||||
int count = Integer.parseInt(command);
|
||||
return moveDisks(count, 'A', 'B', 'C');
|
||||
return moveDisks(count, 'A', 'B', 'C') + System.lineSeparator();
|
||||
}
|
||||
|
||||
public String moveDisks(int count, char sourcePole, char restPole, char destinationPole) {
|
||||
|
|
Loading…
Reference in a new issue