common: utils: Beautify the console readline too

- Now it aligns with Scanner
This commit is contained in:
Dhina17 2022-07-10 11:27:54 +05:30
parent 754b07adf4
commit 3d0efdb5cd

View File

@ -16,7 +16,7 @@ public final class ScannerUtils {
synchronized (LOCK) {
Console console = System.console();
if (console != null) {
return console.readLine("[%s] %s", displayName, question);
return console.readLine("[%s] %s: ", displayName, question);
} else {
if (scanner == null) {
scanner = new InputStreamReader(System.in);