Q. Write a program PascalTriangle that prints the N:th row of Pascal’s Triangle. The program should include a recursive method int[] getPascalRow(int n) computing the n:th row of the triangle.

I have solved this problem through non-recursive method but I got confused with the recursive method.

Can a recursive method have a return type, int[] in this case?