Add an EOL to the end of the output
This commit is contained in:
parent
7ffda12287
commit
3c1486854b
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ public class HanoiServer implements CommandExecutor {
|
||||||
@Override
|
@Override
|
||||||
public String execute(String command) throws Exception {
|
public String execute(String command) throws Exception {
|
||||||
int count = Integer.parseInt(command);
|
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) {
|
public String moveDisks(int count, char sourcePole, char restPole, char destinationPole) {
|
||||||
|
|
Loading…
Reference in a new issue