Last active
August 29, 2015 14:07
-
-
Save maripiyoko/fbc8b5182f1a928ec271 to your computer and use it in GitHub Desktop.
Blog post Java reference example
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
/** | |
* すしパーティを始めます。 | |
* 引数で与えられたメンバーの数だけ大将のお任せ寿司を用意するよ。 | |
*/ | |
public void startSushiParty(int numMember) { | |
List<Sushi> dishes = new ArrayList<Sushi>(); | |
for(int i=0; i < numMember; i++) { | |
Sushi sushi = new Sushi(); // 勝手にランダムな寿司が出来上がるものとする | |
dishes.add(sushi); | |
} | |
// TODO : let's party ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment