Advertisement
mattiskan

kattismall

Nov 29th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. /**
  4. * Template code for submissions to kattis.
  5. * Usage: 'java Mall [DEBUG]'
  6. */
  7. public class Mall {
  8.  
  9.     private static boolean debug = false;
  10.  
  11.     public static void main(String[] args) {
  12.     debug = (args.length == 1 && args[0].equals("DEBUG"));
  13.  
  14.     Kattio io = new Kattio(System.in);
  15.  
  16.     // exempel:
  17.     int digit = 4;
  18.     print("Här syns att det går att blanda", 4, "olika typer", '!');
  19.  
  20.     io.close();
  21.     }
  22.  
  23.     static void print (Object... args) {
  24.     if(!debug)
  25.         return;
  26.  
  27.     for (Object s : args){
  28.         System.err.print(s);
  29.         System.err.print(' ');
  30.     }
  31.     System.err.println();
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement