diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-05-03 17:56:39 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-05-03 17:56:39 -0600 |
commit | 5ddbe1a5877c2117b2d74015af1eb11baaf998a1 (patch) | |
tree | 8c593470ce67d0c2cdb14745de512bf52102bc57 /output/ex53.java | |
parent | 8b481ec08efa60d462897a98bec3f6761c2933d1 (diff) |
Added example which checks expressions are dereferenced properly
Diffstat (limited to 'output/ex53.java')
-rw-r--r-- | output/ex53.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/output/ex53.java b/output/ex53.java new file mode 100644 index 0000000..778c1bd --- /dev/null +++ b/output/ex53.java @@ -0,0 +1,17 @@ +class ex53{ + public static void main(String[] a){ + System.out.println(new Test().start(12)); + } +} + +class Test { + + int a ; + int b ; + + public int start(int c) { + a = c; + b = a; + return b; + } +} |