From 3d0efdb5cde0bbe1a4a7795acd5c7207dbfaae3b Mon Sep 17 00:00:00 2001 From: Dhina17 Date: Sun, 10 Jul 2022 11:27:54 +0530 Subject: [PATCH] common: utils: Beautify the console readline too - Now it aligns with Scanner --- src/main/java/it/tdlight/common/utils/ScannerUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/tdlight/common/utils/ScannerUtils.java b/src/main/java/it/tdlight/common/utils/ScannerUtils.java index b92b90c98..5719851ce 100644 --- a/src/main/java/it/tdlight/common/utils/ScannerUtils.java +++ b/src/main/java/it/tdlight/common/utils/ScannerUtils.java @@ -16,7 +16,7 @@ public static String askParameter(String displayName, String question) { 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);