diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-05-12 01:08:11 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-05-12 01:08:11 -0600 |
commit | 42a95045240803c8ce2f3af9b63ab5a10c07ce0c (patch) | |
tree | 6b477b7ce4b2f706349faa3c245fa3f937131469 /output/ex18.java | |
parent | 40d176b0e5a6e3bc964f97bc68fa22cf23a2efa2 (diff) |
Add new tests
Diffstat (limited to 'output/ex18.java')
-rw-r--r-- | output/ex18.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/output/ex18.java b/output/ex18.java new file mode 100644 index 0000000..b730257 --- /dev/null +++ b/output/ex18.java @@ -0,0 +1,22 @@ +class ex18 { + public static void main(String[] a){ + System.out.println(new Test().start()); + } +} + +class Test { + + Test test; + int[] i; + + public int start() { + i = new int[10]; + test = (this.next()).next(); + return 0; + } + + public Test next() { + System.out.println(1); + return test; + } +} |