for (int i = 1; i <= 4; i++) {
for (int k = 1; k <= 4 - i; k++) {
System.out.print(" ");
}
for (int j = 1; j <= i * 2 - 1; j++) {
System.out.print("*");
}
System.out.println();
}
for (int z = 3; z >= 1; z--) {
for (int c = 1; c <= 4 - z; c++) {
System.out.print(" ");
}
for (int x = z * 2 - 1; x >= 1; x--) {
System.out.print("*");
}
System.out.println();
}
07-16
3856
07-02
141