java最简单的for循环输出helloworld
工具/原料
eclipse
jdk
方法/步骤
1、打开电脑上的eclipse软件,配置好jdk的。
2、然后new一个Javaproject,
3、新建一个class文件,勾引main选项,自动调用main方法
4、输入代码/*System.out.println("hello嘛术铹砾world"); System.out.println(&q锇栀劐箨uot;helloworld"); System.out.println("helloworld"); System.out.println("helloworld"); System.out.println("helloworld"); System.out.println("helloworld"); System.out.println("helloworld"); System.out.println("helloworld"); System.out.println("helloworld"); System.out.println("helloworld");*/ for(inti=1;i<=10;i++){ System.out.println("helloworld"); } }}
5、控制台会出现helloworldhellowor盟敢势袂ldhelloworldhelloworldhelloworldhello臃扮哀坷worldhelloworldhelloworldhelloworldhelloworld