java compute the factorial of a number

java compute the factorial of a number
refer‮‬ to:lautturi.com
/**
 * @author lautturi.com
 * Java example:Calculate the factorial of n
 */
import java.util.*;

public class Lautturi {
	 public static int factorial(int number) {
	        if (number <= 1)
	            return 1;
	        else
	            return number * factorial(number - 1);
	    }

	public static void main(String[] args) {

		System.out.println(factorial(4));
		
	}
}
Created Time:2017-09-19 21:45:40  Author:lautturi