while(i>=j);
System.out.println("-----------------------");
System.out.print("[");
for(int x=0; x<=n+r; x++){
System.out.print ((arrPascal[n+r][x])+",");
}
System.out.print("]");
}
My code prints
[1, 10, 45, 120, 210, 252, 210, 120, 45, 10, 1, ]
I want to print
[1, 10, 45, 120, 210, 252, 210, 120, 45, 10, 1]
Tried print statement:
System.out.print (Arrays.toString(arrPascal[n+r][x]))
Results in error:
The method toString(long[]) in the type Arrays is not applicable for the arguments (long)