java 最简单的for循环输出helloworld

 时间:2026-02-14 09:25:28

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

java 最简单的for循环输出helloworld

2、然后new一个Javaproject,

java 最简单的for循环输出helloworld

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

java 最简单的for循环输出helloworld

4、输入代码

/*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");

System.out.println("helloworld");*/

for (int i = 1;i <= 10 ;i++ ) {

System.out.println("helloworld");

}

}

}

java 最简单的for循环输出helloworld

5、控制台会出现

helloworld

helloworld

helloworld

helloworld

helloworld

helloworld

helloworld

helloworld

helloworld

helloworld

java 最简单的for循环输出helloworld

  • 英雄联盟手游英雄排名什么时候更新
  • 知乎APP怎么解绑自己的QQ账号
  • 番茄小说怎么开启热门专题
  • 网站被C可以使用高防服务器?
  • 如何下载王者荣耀女英雄壁纸
  • 热门搜索
    黑色素怎么消除 白萝卜怎么做好吃 苦瓜怎么炒好吃又不苦 灭火的基本方法 古诗大全 白色衣服发黄怎么洗 小孩感冒发烧怎么办 清炖排骨怎么做好吃 电脑怎么加密码 君越怎么样