i am anable to solve invertedHourGlass question of challange .this is my code please point my error
import java.util.;
public class Main {
public static void main(String args[]) {
Scanner scn=new Scanner(System.in);
int n=0;
if(scn.hasNext()){
n=scn.nextInt();
}
int nst=1;
int nsp=2n-1;
int nr=2*n+1;
//row
int row=1;
while(row<=nr){
//value
for(int cst=1;cst<=nst;cst++){
System.out.print(n);
nā;
}
//space
for(int csp=1;csp<=nsp;csp++){
System.out.print(" ");
}
//value
for(int cst=1;cst<=nst;cst++){
int cnt=n-row+cst;
System.out.print(cnt);
}
}
System.out.println();
if(row<=6){
nst=nst+1;
nsp=nsp-2;
}
else{
nst=nst-1;
nsp=nsp+2;
}
row++;
}
}