Last active
October 9, 2015 06:07
-
-
Save HituziANDO/3450987 to your computer and use it in GitHub Desktop.
Java_ConsoleInput
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static String consoleInput (String prompt) throws IOException { | |
if (prompt != null) { | |
System.out.print(prompt); | |
} | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
return br.readLine(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment