Ganesha pattern problem ,geting compiling error

Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int nst = n - 3;
int Nst = 1;
int nsp = n - 5;
int Nsp = n - 4;
int row = 1;
while (row <= n) {
if (row == 1) {
for (int i = 1; i <= Nst; i++) {
System.out.print("");
}
for (int i = 1; i <= nsp; i++) {
System.out.print(" “);
}
for (int i = 1; i <= nst; i++) {
System.out.print(”
");
}
} else if (row == (n / 2) + 1) {
for (int i = 1; i <= n; i++) {
System.out.print("");
}
} else if (row == n) {
for (int i = 1; i <= nst; i++) {
System.out.print("
");
}
for (int i = 1; i <= nsp; i++) {
System.out.print(" “);
}
for (int i = 1; i <= Nst; i++) {
System.out.print(”");
}
} else {
if (row <= n / 2) {
for (int i = 1; i <= Nst; i++) {
System.out.print("
");
}
for (int i = 1; i <= nsp; i++) {
System.out.print(" “);
}
for (int i = 1; i <= Nst; i++) {
System.out.print(”");
}
} else {
for (int i = 1; i <= Nsp; i++) {
System.out.print(" “);
}
for (int i = 1; i <= Nst; i++) {
System.out.print(”
");
}
for (int i = 1; i <= nsp; i++) {
System.out.print(" “);
}
for (int i = 1; i <= Nst; i++) {
System.out.print(”*");
}
}

		}
		System.out.println();
		System.out.println();
		row++;
	}

@vikashkmr519
Please include import.java.util.* at the top;

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.