蜂之谷
public static void main(String[] args) {
int rowNum = 5;
for (int i = 1; i <= rowNum; i++) {
for (int j = 1; j <= rowNum - i; j++) {
System.out.print(" ");//打印空格
}
for (int k = 1; k <= i; k++) {
System.out.print("* ");
}
System.out.println();//换行
}
}