diff options
Diffstat (limited to 'tools/Alert.java')
-rw-r--r-- | tools/Alert.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/Alert.java b/tools/Alert.java new file mode 100644 index 0000000..55d7838 --- /dev/null +++ b/tools/Alert.java @@ -0,0 +1,21 @@ +package mahjong.tools; + +/** + * Created by joe on 12/6/14. + */ +public class Alert { + public static void Error(boolean bool,String str) + { + if (bool) + { + System.out.println(str); + System.exit(1); + } + } + + public static void Info(boolean bool,String str) + { + if (bool) + System.out.println(str); + } +} |