Pattern numbers&star-1

import java.util.;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int row=1,nst1=n,nst2=-1,val=1;
while(row<=n){
for(int cst1=1;cst1<=nst1;cst1++)
{
System.out.print(val+" “);
val=val+1;
}
int cst2=1;
while(cst2<=nst2){
System.out.print(”
");
cst2++;

}
System.out.println();
row=row+1;
nst1= nst1 - 1;
nst2= nst2 + 2;
val=1;
}

}

}
why eventhough my code was correct testcasess are not running

@karthik1989photos,
Did you add a " " after every star too?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.