a guest Dec 9th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private static String consoleInput(String prompt) throws IOException
  2. {
  3.     if(prompt != null)
  4.     {
  5.         System.out.print(prompt);
  6.     }
  7.     BufferedReader br = new BufferedReader(new InputStreamReader(;
  8.     return br.readLine();
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand