网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

java 最简单的for循环输出helloworld

时间:2024-10-12 05:47:48

1、打开电脑上的eclipse软件,配置好jdk的。

java 最简单的for循环输出helloworld

2、然后new一个Javaproject,

java 最简单的for循环输出helloworld

3、新建一个class文件,勾引main选项,自动调用main方法

java 最简单的for循环输出helloworld

4、输入代码/*System.out.println("hello嘛术铹砾world"); 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"); System.out.println("helloworld");*/ for (int i = 1;i <= 10 ;i++ ) { System.out.println("helloworld"); } }}

java 最简单的for循环输出helloworld

5、控制台会出现helloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworld

java 最简单的for循环输出helloworld
© 2025 一点资料
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com