Please review my code Solution Pattern 22

package codingBlocks_Pattern;

import java.util.Scanner;

public class Ques_twenty2 {

public static void main(String[] args) {
	
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	
	int star = 2*n-1;
	int str1 = n;
	int str2 = n;
	int space = 1;
	int row = 1;
	
	while(row <= n) {
			
				for(int j =1;j<= str1; j++) {
					System.out.print("*");
				}
				
				if (row > 1) {
				for(int k =2; k<= space; k++) {
					System.out.print(" ");
				}
				}
				for (int y=1;y<= str2; y++) {
					System.out.print("*");
				}
				System.out.println();
				
				str1--;
				str2--;
				space = space+2;
				row++;
				
					}
					
				
				
				
			}

}