Code not printing what it should

package PATTERNS;
import java.util.Scanner;
public class PATTERN1 {

public static void main(String[] args) {
	Scanner scn = new Scanner(System.in);
	System.out.println("Enter a no");
	int n = scn.nextInt();
	int row=1;
	while(row<=n) {
		int col=1;
		while(col<=n) {
			System.out.println("*");
			col=col+1;
		}
		System.out.println();
		row=row+1;
	}
	scn.close();
}

}
it should be printing






hey @Kamyanagpal
just a changes
System.out.print("* “); instead of System.out.println(”* ");
correct code Link: