Skip to content

Instantly share code, notes, and snippets.

@BalicantaYao
Created August 24, 2014 11:14
Show Gist options
  • Save BalicantaYao/713d9e04459659cd9446 to your computer and use it in GitHub Desktop.
Save BalicantaYao/713d9e04459659cd9446 to your computer and use it in GitHub Desktop.
PassByValue.java
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