这个就是最简单的啊, 难道你想要个复杂的.如下
public class F {
public static void main(String[] args) {
int i = 0;
while(i < 6) {
int j = 0;
while(j < 6 - i) {
System.out.print("*");
j++;
}
package linkedlist; public class F { public static void main(String[] args){ for (int x=5;x>=0 ;x-- ) { for (int y=0;y<=x ;y++ ) { System.out.print("*"); } System.out.println(); } } }