What's wrong in your code:
You can update your logic so that you can get expected output.
static void printPascal(int row, int column, int rowLimit) {
for (; row < rowLimit; ) {
System.out.println("(" + row + ", " + column + ")");
if (column < row) {
column++; // Move to the next column in the current row
} else {
column = 0; // Reset column for the next row
row++; // Move to the next row
}
}
}