In question 11 i am able to print the pyramid with all rows and coloumns but now how can i omit 1 space between the stars

package crux;

import java.util.Scanner;

public class fibonacci {

public static void main(String[] args) {
	Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
	int nst=1;
	int nsp=n-1;

	for(int row=1;row<=n;row++) {
		for(int i=1;i<=nsp;i++) {
			System.out.print(" ");
		}
		for(int j=1;j<=nst;j++) {

			System.out.print("*");
			}
			
		for(int i=1;i<=nsp;i++) {
			System.out.print(" ");
			
		}
		nst=nst+2;
		nsp=nsp-1;
		System.out.println();
	}
}

}
//THIS IS THE CODE

For each row i, that you are currently going to print, check the number of spaces that you need to put before putting any asterisk. Its, (n - i - 1). After printing these many number of spaces, print each asterisk with a space accompanying it, and then change the row to the next row. That’s how you should go about printing the entire pattern.