How to correct?

import java.util.;
public class Main {
public static void main(String args[]){
int i,j;
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
int rows=n-2;
//loop for display upper half part of the pattern
for(i=1; i<=rows-1; i++){
for(j=i; j<=rows; j++){
System.out.print("
"+"\t");//print star
}
for(j=1; j<=(2i-2); j++){
System.out.print(" “+”\t");//print space
}
for(j=i; j<=rows; j++){
System.out.print("
"+"\t");//print star
}
System.out.print("\n");
}
//loop for printing lower half part of the pattern
for(i=1; i<=rows; i++){
for(j=1; j<=i; j++){
System.out.print("*"+"\t");//print star
}

for(j=(2*i-2); j<(2*rows-2); j++){
   System.out.print(" "+"\t");//print space
}
for(j=1; j<=i; j++){
   System.out.print("*"+"\t");
}
System.out.print("\n");//move to next line
}
}
}

@Shivam_balwani,
you are printing an extra star in the row and column.
https://ide.codingblocks.com/s/252081 you can refer to this code