Mostrar Código
public class Main { public static void main(String[] args) { int x,y,j; for (x = -1; x <= 8; x++) { y = (x - 4) * (x - 4); for (j = 0; j < y; j++) { System.out.print("*"); } System.out.println(); } } }