summaryrefslogtreecommitdiff
path: root/typecheck/tests/IsPositive.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-26 15:50:38 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-26 15:50:38 -0600
commit1851f5e76018ec1df3b55dce6cc9a64c9497bf7a (patch)
tree30f629f7b137a494d4202487f4e22df2d9456481 /typecheck/tests/IsPositive.java
parent012298517078170762112abe2654dc69b2f146e1 (diff)
Rearrange directory structure
Diffstat (limited to 'typecheck/tests/IsPositive.java')
-rw-r--r--typecheck/tests/IsPositive.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/typecheck/tests/IsPositive.java b/typecheck/tests/IsPositive.java
deleted file mode 100644
index 09bcf1d..0000000
--- a/typecheck/tests/IsPositive.java
+++ /dev/null
@@ -1,29 +0,0 @@
-class IsPositive{
- public static void main(String[] a){
- System.out.println(new Positive().isPositive(10));
- }
-}
-
-class Positive {
- public boolean isPositive(int num){
- boolean positive ;
-
- if (0 < num)
- positive = true ;
- else
- positive = false ;
- return positive ;
- }
-}
-
-class Positive2 extends Positive {
- public boolean isPositive(int num){
- boolean positive ;
-
- if (0 < num)
- positive = true ;
- else
- positive = false ;
- return positive ;
- }
-}