Created
June 21, 2016 16:28
-
-
Save bobbyjam99-zz/a6ef0d7acad5780b6ba05d4a37ad60b2 to your computer and use it in GitHub Desktop.
Eclipse Collectionsを使って日付(01-31)のListを作成
This file contains hidden or 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
ImmutableList<String> list = IntInterval.fromTo(1, 31) | |
.collect(new IntToObjectFunction<String>() { | |
public String valueOf(int i) { | |
return String.format("%02d", i); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment