Created
August 24, 2014 11:14
-
-
Save BalicantaYao/713d9e04459659cd9446 to your computer and use it in GitHub Desktop.
PassByValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void runCase1() { | |
// Case1. From Pratical Java | |
int j = 10; | |
Point point = new Point(4, 4); | |
logger.info("Before Modify Point {}, j ={}", point, j); | |
setPointLocation(point, j); | |
logger.info("After Modify Point {}, j ={}", point, j); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment