diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-24 18:43:52 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-24 18:43:52 -0600 |
commit | 0bbc4cb511bd90cebf94ccfcfce5ff8983ebb918 (patch) | |
tree | 3ead995c78dbc0112a37e03056b440dbebd571e8 /boil/tests/ex45.java | |
parent | b9c7f34926bfec0b7704b09865b74cb42c66ab6d (diff) |
Boil new array tests
Diffstat (limited to 'boil/tests/ex45.java')
-rw-r--r-- | boil/tests/ex45.java | 19 |
1 files changed, 19 insertions, 0 deletions
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 ; + } +} |