Quantcast
Channel: Shekhar Gulati
Viewing all articles
Browse latest Browse all 147

Write Infinite FizzBuzz Sequence in Java 8

$
0
0
One way to write FizzBuzz program in Java 8 using Stream API. Write a program that prints the integers from 1 to 100. But for multiples of three print “Fizz” instead of the number, and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”. The… Continue reading Write Infinite FizzBuzz Sequence in Java 8

Viewing all articles
Browse latest Browse all 147

Trending Articles