From 1851f5e76018ec1df3b55dce6cc9a64c9497bf7a Mon Sep 17 00:00:00 2001 From: bd-912 Date: Fri, 26 Apr 2024 15:50:38 -0600 Subject: Rearrange directory structure --- base/ex33.java | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 base/ex33.java (limited to 'base/ex33.java') diff --git a/base/ex33.java b/base/ex33.java new file mode 100644 index 0000000..d7f23ed --- /dev/null +++ b/base/ex33.java @@ -0,0 +1,23 @@ +class ex33 { + public static void main(String[] z) { + A a ; + a = new A() ; + System.out.println(a.bar(0-1, 400, 6*7)) ; + System.out.println(a.foo(0+1, 400)) ; + } +} + +class A { + + int o ; + int q ; + + public int foo(int a, int b) { + o = 3 ; + return 22 ; + } + + public int bar(int x, int y, int z) { + return 6 ; + } +} -- cgit v1.2.3