DataInputStream in = new DataInputStream(System.in);
    private static boolean getResponse(String prompt) {        DataInputStream in = new DataInputStream(System.in);        String response = null;        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));        System.out.print(prompt);        try {            response = in.readLine();        } catch (IOException ioe) {        }        if (response != null && response.toLowerCase().indexOf("y") == 0)            return true;        else            return false;    }