diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-03-27 13:09:08 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-03-27 13:09:08 -0600 |
commit | 8131ddc22af5d39114a55349d71bcdc467599187 (patch) | |
tree | 9aaa7b984f223b1b405bb1598982ea992eeba67d /typecheck/tests/IsPositive.java | |
parent | e8af241aa57104d62c25c8bcbc2df76510998bf9 (diff) |
Expand file structure, Vaporize skeleton
Diffstat (limited to 'typecheck/tests/IsPositive.java')
-rw-r--r-- | typecheck/tests/IsPositive.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/typecheck/tests/IsPositive.java b/typecheck/tests/IsPositive.java new file mode 100644 index 0000000..6adc30f --- /dev/null +++ b/typecheck/tests/IsPositive.java @@ -0,0 +1,17 @@ +class IsPositive{ + public static void main(String[] a){ + System.out.println(new Positive().isPositive(10)); + } +} + +class Positive { + public bool IsPositive(int num){ + bool positive ; + + if (0 < num) + positive = true ; + else + positive = false ; + return positive ; + } +} |