public static boolean isYes(String answer) {
    if(answer.equals("yes") || answer.equals("Yes") ||
                    answer.equals("y") || answer.equals("Y"))
        return true;
    else
        return false;
}