public static void print(String s) throws IOException { if (out == null) { systemout.println(s); } else { out.printf(s + "\n"); out.flush(); } }
protected static void out(String s, Object... args) throws IOException { if (out == null) { systemout.println(sprintf(s, args)); } else { out.printf(s + "\n", args); out.flush(); } }