Java Programming Tutorials

Java programming tutorials with many code examples!

Java Switch Case

Problem:

What is syntax for switch case statement in Java 7?

Read More

Share with the World!

Java Literals

Problem:

What are Java Literals for numbers?

Read More

Share with the World!

Fizz Buzz in Java

Problem:

How to write Fizz Buzz in Java?

The problem is as follows:

Write a program that prints the numbers 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’.

It’s a very common task on job interviews.

Read More

Share with the World!
Pages:123