Unable to print diamond!

package PracticePattern;

import java.util.Scanner;

public class PracticePattern20 {

public static void main(String[] args) {

	System.out.println("PracticePattern 20 ");

	Scanner scan = new Scanner(System.in);
	int n = scan.nextInt();

	int rows = 1;
	int nsp = n;
	int nst = 1;
	// upper traingle
	while (rows <= n) {
		// work for spaces
		for (int csp = 1; csp <= nsp; csp++) {
			System.out.print(" ");
		}

		// work for stars
		for (int cst = 1; cst <= nst; cst++) {
			if (cst > 1 && cst < nst) {
				System.out.print(" ");
			} else {
				System.out.print("*");
			}
		}

		// preparation
		System.out.println();
		nsp--;
		nst = nst + 2;
		rows++;
	}

	// lower traingle

	rows = 1;
	nsp = 0;
	nst = n;
	while (rows <= n) {
		// work for spaces
		for (int csp = 1; csp <= nsp; csp++) {
			System.out.print(" ");
		}
		// work for stars
		for (int cst = 1; cst <= nst; cst++) {
			if (cst > 1 && cst < nst) {
				System.out.print(" ");
			} else {
				System.out.print("*");
			}
		}
		// prepation
		System.out.println();
		nsp++;
		nst = nst - 2;
		rows++;
	}

}

}