public class LingXing{
public static void main(String[] args){
int a=1;
int a1=1;
int d=6;
int d1=5;
while(a<=5){
for(int b=a;b<=5;b++){
if(b==5){
System.out.print(“*”);
}
System.out.print(” “);
}
for(int c=d;c>=5;c–){
if(c==8){
System.out.print(“*”);
}
System.out.print(” “);
}
System.out.println(” “);
a++;
d+=2;
}
while (a1 < 5) {
for (int c = a1; c >= 0; c--) {
if (c == 0) {
System.out.print("*");
}
System.out.print(" ");
}
for (int c = d1; c <= 5&&c>=1; c--) {
if (c == 1) {
System.out.print("*");
}
System.out.print(" ");
}
System.out.println(" ");
a++;
d += 2;
a1++;
d1 -= 2;
}
}
}