/** A class that calculates factorials
 *  @author 	Nancy Harris, James Madison University
 *  @version 	V1
 */
public class Factorial
{
	public static int getFactorial(int n)
	{
		if (n == 1)		// easy case 1! = 1
			return 1;	
		else				// hard case, but by subtracting 1 each time we  
						   // approach the easy case
			return n * getFactorial(n - 1);
	}
}