10.1.6: Factorial For This Problem, You Are Goign To Write A Recursive Function To Calculate The Factorial Of A Number. Remember, Factorial Is The Product Of An Integer And All The Integers Below It. This Function Should Be Similar To The Summing Example We Looked At Earlier. Note: Make Sure You Enter Small Numbers To Test. Factorial Will Overflow The Int10.1.6: FactorialFor this problem, you are goign to write a recursive function to calculate the factorial of a number. Remember, factorial is the product of an integer and all the integers below it. This function should be similar to the summing example we looked at earlier.Note: Make sure you enter small numbers to test. Factorial will overflow the int value very quickly! Factorial.javaimport java.util.Scanner;public class Factorial{public static void main(String[] args){Scanner input = new Scanner(System.in);System.out.println("Please enter a number: ");int number = input.nextInt();System.out.println(calcFactorial(number));}public static int calcFactorial(int x){// Write a base case// Call the simplified solution}}Please complete the code in Java