1 public class Print { 2 public static void main (String arg[]) 3 { 4 for(int i=0;i<16;i++) 5 { 6 for(int j=0;j<16;j++) 7 { 8 if(i<8) 9 { 10 if(j<=i||j>=15-i) 11 { 12 System.out.print("*"); 13 14 } 15 else 16 System.out.print(" "); 17 } 18 else 19 { 20 if(j<15-i||j>i) 21 System.out.print("*"); 22 else 23 System.out.print(" "); 24 25 } 26 27 } 28 System.out.println(); 29 } 30 } 31 }