class Squares {
  public static void main(String args[]) {
    filledSquares();
  }
  public static void filledSquare() {
    System.out.print("Enter the number of rows/cols: ");
    int number = scanner.nextInt();
    filledSquare(number);
  }
  public static void filledSquare(int number) {
    filledSquare(number, ...
  }
  public static void filled Square(int number, ...
}


Handling printing on a single row

1.Base Case -> finished printing all collumns on a single row
               cols == number
2.Recursive Case -> when i still need to print more columns on this row
                    cols < number
3. Recursive Step -> traverse to the next column, printing appropriately
                     fillingARows(number, cols + 1)

Handling printing all columns data on all rows

1. Base Case -> finished printing all rows all column data
                rows == number
2. Recursive Case -> when i still need to print more rows
                     rows < number

