要实现的效果为:
× × × × ×
× × × ×
× × ×
× ×
×
× × × × ×
× × × ×
× × ×
× ×
×
public class Study {
public static void main(String[] args){
for(int i=5;i>=1;i--){
for(int j=i;j>=1;j--)
System.out.print(" * ");
if((i-1)<=i)
System.out.println();
}
}
}