Skip to content

Instantly share code, notes, and snippets.

@sfinktah
Created October 10, 2020 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sfinktah/b6964a8d340ab25868e9b17720c3e982 to your computer and use it in GitHub Desktop.
Save sfinktah/b6964a8d340ab25868e9b17720c3e982 to your computer and use it in GitHub Desktop.
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