Last active
August 29, 2015 14:07
-
-
Save maripiyoko/f10e4cc572a002468059 to your computer and use it in GitHub Desktop.
Blog post Java reference about null
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
for(int i=0; i < numMember; i++) { | |
Sushi sushi = new Sushi(); // 勝手にランダムな寿司が出来上がるものとする | |
dishes.add(sushi); | |
sushi = null; // ここでどうなる? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment