Merge pull request #109 from Dhina17/master

Beautify the console readline too
This commit is contained in:
Andrea Cavalli 2022-07-11 23:46:21 +02:00 committed by GitHub
commit bf5281dfd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);