I have this code, which I am trying to print the following shape out...

```
****
* *
**
*

```

Current Code:

```
  System.out.print("\nEnter number of rows: ");
  rows = kybd.nextInt();
  for (int i = 0; i < rows; i++) {
      System.out.print("*");
  }
  for (int i = 0; i < rows; i++) {
      for (int j = 1; j <= i; j++) {
          if (j == 1 || j == rows - 1 || j == i) {
              System.out.print("*");
          } else {
              System.out.print("0");
          }
      }
      System.out.println();
  }

```

For some reason, it prints out like this:

```
****
*
**
* *

```

Any idea how to reverse the second for loop, so it prints the other way?