Java code to print pascal's triangle