Beispiel #1
0
 public static void print(String s) throws IOException {
   if (out == null) {
     systemout.println(s);
   } else {
     out.printf(s + "\n");
     out.flush();
   }
 }
Beispiel #2
0
 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();
   }
 }