java tutorial

Solving FizzBuzz Challenge in Java 8

FizzBuzz is one of the most popular programming exercise, which is used by Interviewer to separate Coders who can’t code. It’s also those kind of exercise you would like to do when you start learning new programming language e.g. Ruby, Python or C#.  So when many programmer asked me how to learn new features of Java 8 e.g. functional way of coding using lambdas, using streams, Optional and other feature, I suggest them to solve common coding problems using these feature. It is not only interesting but also very fruitful and my first exercise was to solve FizzBuzz challenge in Java.

Java 8 is in town for more then a year, but do you really know how to FizzBuzz in Java 8 using lambda expression and streams? If not then see this article : FizzBuzz Solution in Java 8.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s