From 2a40b613252eb3d7a95624957dca61fdfa30dc2a Mon Sep 17 00:00:00 2001 From: bd-912 Date: Sat, 11 May 2024 15:14:07 -0600 Subject: Fix three more bugs related to st --- output/ex21.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 output/ex21.java (limited to 'output/ex21.java') diff --git a/output/ex21.java b/output/ex21.java new file mode 100644 index 0000000..2bb11a3 --- /dev/null +++ b/output/ex21.java @@ -0,0 +1,24 @@ +class test66{ + public static void main(String[] a){ + System.out.println(new Test().start()); + } +} + +class Test2 extends Test{ +} + +class Test{ + + Test test; + + public int start(){ + test = test.next(); + return 0; + } + + public Test next() { + Test2 test2; + test2 = new Test2(); + return test2; + } +} -- cgit v1.2.3