Skip to content

Instantly share code, notes, and snippets.

@sfinktah
Created Oct 10, 2020
Embed
What would you like to do?
Ultra-light Java Debugging Class
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