debug.java

来自「J2EE技术开发的新闻发布系统。包括:分类管理、新闻管理、用户管理等基本功能.采」· Java 代码 · 共 42 行

JAVA
42
字号
/* * * *  *//** * This class makes it easier to print out debug statements. * The Debug.print statements are printed to System.err * if debuggingOn = true. */package util;public final class Debug {    public static final boolean debuggingOn = true;    public static final void print(String msg) {        if (debuggingOn) {           System.err.println("Debug: " + msg);        }    }    public static final void print(String msg, Object object) {        if (debuggingOn) {           System.err.println("Debug: " + msg);           System.err.println("       " + object.getClass().getName());        }    }         public static final void println(String msg) {        if (debuggingOn) {           System.err.println(msg);        }    }}  // Debug

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?