From 6377548c75f05f0b8599dcfb8d61a56240692334 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Wed, 17 Apr 2024 21:42:42 -0600 Subject: Add all of the tests I forgot to add --- boil/tests/ex37.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 boil/tests/ex37.java (limited to 'boil/tests/ex37.java') diff --git a/boil/tests/ex37.java b/boil/tests/ex37.java new file mode 100644 index 0000000..867116a --- /dev/null +++ b/boil/tests/ex37.java @@ -0,0 +1,20 @@ +class ex37 { + public static void main(String[] z) { + A a ; + a = new A() ; + System.out.println(a.foo()) ; + } +} + +class A { + + public int foo() { + int v ; + v = 0 ; + while (v < 10) { + v = v + 1 ; + } + return v ; + } + +} -- cgit v1.2.3