From 0bbc4cb511bd90cebf94ccfcfce5ff8983ebb918 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Wed, 24 Apr 2024 18:43:52 -0600 Subject: Boil new array tests --- boil/tests/ex45.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 boil/tests/ex45.java (limited to 'boil/tests/ex45.java') diff --git a/boil/tests/ex45.java b/boil/tests/ex45.java new file mode 100644 index 0000000..72f85d4 --- /dev/null +++ b/boil/tests/ex45.java @@ -0,0 +1,19 @@ +class ex45 { + public static void main(String[] z) { + int result ; + A a ; + a = new A() ; + result = a.run() ; + System.out.println(result) ; + } +} + +class A { + + int[] arr ; + + public int run() { + arr = new int[10] ; + return arr.length ; + } +} -- cgit v1.2.3