Created
May 23, 2016 22:20
-
-
Save kobaken0029/abf138d2ec454d8cf1119f8f1c1f0646 to your computer and use it in GitHub Desktop.
Javaでワンライナーfizzbuzz
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
IntStream.range(1,101).mapToObj(i->(i%15==0?"FizzBuzz":i%5==0?"Buzz":i%3==0?"Fizz":i)).forEach(System.out::println); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment