serialdebug.java

来自「First of all, the Applet-phone is a SIP 」· Java 代码 · 共 37 行

JAVA
37
字号
/* * SerialPortDebug.java * * Created on August 1, 2003, 2:53 PM */package gov.nist.examples.bps.reader.baselistener;/** * * @author  Deruelle olivier. */public class SerialDebug {        private static boolean DEBUG=true;        /** Creates a new instance of SerialPortDebug */    public SerialDebug(boolean debug) {        DEBUG=debug;    }        public static void println(String mess){        if (DEBUG)            System.out.println(mess);    }        public static void print(String mess){        if (DEBUG)            System.out.print(mess);    }        public static void println(){        if (DEBUG)            System.out.println();    }}

⌨️ 快捷键说明

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