From 200643c4f81b2a029f18cbbfcf59010779598df0 Mon Sep 17 00:00:00 2001 From: 13766800364 <13766800364@qq.com> Date: Thu, 9 Oct 2025 16:10:25 +0800 Subject: [PATCH] Add File --- .../gitee/drinkjava2/frog/util/Systemout.java | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 history/009_wa3d_shape/src/main/java/com/gitee/drinkjava2/frog/util/Systemout.java diff --git a/history/009_wa3d_shape/src/main/java/com/gitee/drinkjava2/frog/util/Systemout.java b/history/009_wa3d_shape/src/main/java/com/gitee/drinkjava2/frog/util/Systemout.java new file mode 100644 index 0000000..5c008df --- /dev/null +++ b/history/009_wa3d_shape/src/main/java/com/gitee/drinkjava2/frog/util/Systemout.java @@ -0,0 +1,36 @@ +package com.gitee.drinkjava2.frog.util; + +/** + * Debug utility to replace System.out + * + * @author Yong Zhu + * @since 2.0.5 + */ +@SuppressWarnings("all") +public class Systemout { + public static boolean allowPrint = true; + + public static boolean isAllowPrint() { + return allowPrint; + } + + public static void setAllowPrint(boolean allowPrint) { + Systemout.allowPrint = allowPrint; + } + + public static void print(Object obj) { + if (allowPrint) + System.out.print(obj); + } + + public static void println(Object obj) { + if (allowPrint) + System.out.println(obj); + } + + public static void println() { + if (allowPrint) + System.out.println(); + } + +}