Created
October 10, 2020 10:11
-
-
Save sfinktah/b6964a8d340ab25868e9b17720c3e982 to your computer and use it in GitHub Desktop.
Ultra-light Java Debugging Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Debug { | |
public static boolean DEBUG = true; | |
public static void format(String format, Object... args) { | |
println(String.format(format, args)); | |
} | |
public static void println(String s) { | |
if (DEBUG) { | |
System.out.println(s); | |
} | |
} | |
public static void println() { | |
println(""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment