Write a Java program that prints the following table for all odd numbers <= 19.
Use the method sumOfFactorials(int N) which adds all the factorials of 1 to N (N! = 1 * 2 * 3 * ... * N).
Also, use a method called factorial(int i) to calculate the factorial of a given number.
Sample Run:
N 1 3 5
sum(1! to...i!) 1 1! + 2! + 3! = 1 + 2 + 6 = 9 153
19
i?(+.Z