利用for循环嵌套打印圣诞树 class ForTree{ public static void main(String[] args){ for(int i = 1;i<=6;i++){ for(int x = 1;x <= 6-i;x++){ System.out.print(" "); }