Skip to content

Instantly share code, notes, and snippets.

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