void star() {
        int x = 9;
        int y = 5;
        int center = 4;

        for(int i = 0; i < y; i++){
            for(int c = 0; c < x; c++){
                if((c >= (center - i)) && (c <= (center + i))){
                    System.out.print("*");
                }else{
                    System.out.print(" ");
                }
            }
            System.out.println("");
        }
    }