6 private static BufferedReader read
= new BufferedReader(new InputStreamReader(System
.in
));
8 public static String
prompt() {
10 return read
.readLine();
12 catch (IOException e
) {
13 System
.err
.println(e
);
18 public static String
prompt(String prompt
) throws IOException
{
21 return read
.readLine();
23 catch (IOException e
) {
24 System
.err
.println(e
);
29 public static int promptInt(String prompt
) throws IOException
{
32 return Integer
.parseInt(read
.readLine());
34 catch (IOException e
) {
35 System
.err
.println(e
);
40 private static void print(String prompt
) {
41 System
.out
.print(prompt
);