void star2() {
        int rows = 5;
        for (int i = rows -1; i >= 0; i--){
            for (int j = 0; j < i; j++){
                System.out.print(" ");
            }
            for (int j = (rows - i) * 2 - 1; j > 0; j--){
                System.out.print("*");
            }
            System.out.println();
        }
    }