📄 debug.java
字号:
import java.io.*;public class debug{ private static boolean msg_on = false; private static String filename = null; public static void SetMessageOn() { msg_on = true; } public static void SetMessageOff() { msg_on = false; } public static void SetFilename( String in_name ) throws IOException { filename = new String( in_name ); System.setOut( new PrintStream( new FileOutputStream(in_name) ) ); } public static void print( String x ) { if ( msg_on ) System.out.print( x ); } public static void println( String x ) { if ( msg_on ) System.out.println( x ); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -