Java Programming Tutorials

Java programming tutorials with many code examples!

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!

Bash define function

Problem:

Bash allows to define functions, which is very good way to reuse parts of shell scripts. This tutorial shows how to define Bash functions and apply in scripts.

Read More

Share with the World!

Bash command alias

Problem:

Bash alias is a great way to create a simple name for complex commands. Use it to make your life in Bash command line simpler!

Read More

Share with the World!