diff options
Diffstat (limited to 'oop/08-pass-by-value-reference/PassByValue.java')
| -rw-r--r-- | oop/08-pass-by-value-reference/PassByValue.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/oop/08-pass-by-value-reference/PassByValue.java b/oop/08-pass-by-value-reference/PassByValue.java deleted file mode 100644 index 2500d03..0000000 --- a/oop/08-pass-by-value-reference/PassByValue.java +++ /dev/null @@ -1,17 +0,0 @@ -public class PassByValue { - - /** - * @param args - */ - public static void main(String[] args) { - int x = 4; - System.out.println(x); // 4 - method(x, 2); - System.out.println(x); // ? - } - - public static void method(int x, int b) { - x = x + 1; - System.out.println(x); // 5 - } -} |
