The Stack Overflow podcast is back! Listen to an interview with our new CEO.
1 of 4
class myclass {
public static void main(String[] args) {
    line();
    for (int m = 0; m <6; m++) {
        starWithSpace();
        System.out.println();
    }
    line();
}
public static void space() {
    System.out.print(" ");
}
public static void printStar() {
    System.out.print("*");
}
public static void starWithSpace() {
    printStar();
    for (int i = 0; i <= 6; i++) {
        space();
    }
    printStar();
}
public static void line() {
    for (int header = 0; header <= 8; header++) {
        printStar();
    }
    System.out.println("");
}

}