Advertisement
BullyATWiiplaza

Debugging Prints

Oct 12th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. public class DebuggingPrints
  2. {
  3.     private static boolean debugging = true;
  4.  
  5.     public static void printLn(String line)
  6.     {
  7.         if (debugging)
  8.         {
  9.             System.out.println(line);
  10.         }
  11.     }
  12.  
  13.     public static void print(String text)
  14.     {
  15.         if (debugging)
  16.         {
  17.             System.out.print(text);
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement