The animation below demonstrates the recursive nature of Pascal’s Triangle.
Objective: to employ recursion to be able to print out an entire line of Pascal’s Triangle . Look at the animation, getting a particular term in a line is inherently recursive. This class should throw an ArithmeticException if you attempt to calculate an invalid Term. (quick example of how to throw an Exception)
Hint: You only need to use recusion to get the term of the expansion.
Now that you can print out an entire line of Pascal’s Triangle. Print out the entire triangle up to some degree ‘n’.