1.12 points Use a while loop to write a Java program to calculate the factorial. In mathematics, the factorial of a non-negative integer n is the product of all positive integers less than or equal to n. For example,
5! = 5 x 4 x 3 x 2 x 1 = 120
And
6! = 6 x 5 x 4 x 3 x 2 x 1 = 720
Name the class as Main, and name the method as factorial. Display the result as a string.