public class ConsoleUtils extends Object
| Constructor and Description |
|---|
ConsoleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
askConfirmation()
Asks the user for confirmation
|
static String |
listToString(List<String> list)
Turns a list into string to show it.
|
static String |
readPassword(String promt)
Reads a password
|
static String |
readString(String prompt) |
static String |
readTextFile(File file)
Reads a text file.
|
public static String readPassword(String promt)
promt - Promt to showpublic static String readTextFile(File file) throws IOException
file - the file to read.IOExceptionpublic static String listToString(List<String> list)
list - The listpublic static boolean askConfirmation()
Copyright © 2020. All rights reserved.