Create a gist now

Instantly share code, notes, and snippets.

Javaでワンライナーfizzbuzz
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