out.println(c.getPrompt());
out.print(c.getPrompt());
  protected void handleConfirmation(ConfirmationCallback c) throws IOException  {    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));    if (c.getPrompt() != null)      out.println(c.getPrompt());    String[] choices = null;    int[] values = null;    switch (c.getOptionType())      {      case ConfirmationCallback.OK_CANCEL_OPTION:        out.print(messages.getString("callback.okCancel"));        choices = new String[] {          messages.getString("callback.ok"),          messages.getString("callback.cancel"),          messages.getString("callback.shortOk"),          messages.getString("callback.shortCancel")        };        values = new int[] {          ConfirmationCallback.OK, ConfirmationCallback.CANCEL,          ConfirmationCallback.OK, ConfirmationCallback.CANCEL        };        break;      case ConfirmationCallback.YES_NO_CANCEL_OPTION:        out.print(messages.getString("callback.yesNoCancel"));        choices = new String[] {          messages.getString("callback.yes"),          messages.getString("callback.no"),          messages.getString("callback.cancel"),          messages.getString("callback.shortYes"),          messages.getString("callback.shortNo"),          messages.getString("callback.shortCancel")        };        values = new int[] {          ConfirmationCallback.YES, ConfirmationCallback.NO,          ConfirmationCallback.CANCEL, ConfirmationCallback.YES,          ConfirmationCallback.NO, ConfirmationCallback.CANCEL        };        break;      case ConfirmationCallback.YES_NO_OPTION:        out.print(messages.getString("callback.yesNo"));        choices = new String[] {          messages.getString("callback.yes"),          messages.getString("callback.no"),          messages.getString("callback.shortYes"),          messages.getString("callback.shortNo")        };        values = new int[] {          ConfirmationCallback.YES, ConfirmationCallback.NO,          ConfirmationCallback.YES, ConfirmationCallback.NO        };        break;      case ConfirmationCallback.UNSPECIFIED_OPTION:        choices = c.getOptions();        values = new int[choices.length];        for (int i = 0; i < values.length; i++)          values[i] = i;        out.print('(');        for (int i = 0; i < choices.length; i++)          {            out.print(choices[i]);            if (i != choices.length - 1)              out.print(", ");          }        out.print(") [");        out.print(choices[c.getDefaultOption()]);        out.print("] ");        break;      default:        throw new IllegalArgumentException();      }    String reply = in.readLine();    if (reply == null)      {        c.setSelectedIndex(c.getDefaultOption());        return;      }    reply = reply.trim();    for (int i = 0; i < choices.length; i++)      if (reply.equalsIgnoreCase(choices[i]))        {          c.setSelectedIndex(values[i]);          return;        }    c.setSelectedIndex(c.getDefaultOption());  }