Factorial in Java 

This code shows how a `factorial algorithm` can be written in an efficient way in Java. This algorithm uses `while` loop to calculate the factorial of a non-negative number in a simple way.