Create Pascal's Triangle II.java

Another way is to use to formula to generate the kth element in nth row of Pascal's Triangle: 
r(k) = r(k-1) * (n+1-k)/k