From f0f49024441718b15ce911fe206ba28190c81eb8 Mon Sep 17 00:00:00 2001 From: Johannes Bechberger Date: Fri, 19 Oct 2018 14:24:43 +0200 Subject: [PATCH] Add BooleanUtils library --- exec/lib/BooleanUtils.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 exec/lib/BooleanUtils.java diff --git a/exec/lib/BooleanUtils.java b/exec/lib/BooleanUtils.java new file mode 100644 index 0000000..6894467 --- /dev/null +++ b/exec/lib/BooleanUtils.java @@ -0,0 +1,18 @@ +package lib; + +public class BooleanUtils { + + public int toInt(boolean value){ + if (value){ + return 1; + } else { + return 0; + } + } + + public BooleanUtils println(boolean value){ + System.out.println(toInt(value)); + return this; + } +} + -- GitLab