class TestFor { public static void main(String[] args) { //int i=0; for(int i=0;i<4;i++){ System.out.println("Hello World!"); } int j=1; for(System.out.print(‘a‘);j<3;System.out.print(‘b‘),j++){ System.out.print(‘c‘); } } }
时间: 2024-10-22 13:54:23
class TestFor { public static void main(String[] args) { //int i=0; for(int i=0;i<4;i++){ System.out.println("Hello World!"); } int j=1; for(System.out.print(‘a‘);j<3;System.out.print(‘b‘),j++){ System.out.print(‘c‘); } } }