while循环
来源:互联网 发布:经常用到的c语言函数库 编辑:程序博客网 时间:2024/06/14 09:32
package rew;
public class ErgodicArray {
public static void main(String[] args){
String[] aves=new String[]{"白鹭","黄鹤","丹顶鹤"};
int index=0;
System.out.println("我的花园有很多鸟,种类包括:");
while(index<aves.length){
System.out.println(aves[index++]);
}
}
public class ErgodicArray {
public static void main(String[] args){
String[] aves=new String[]{"白鹭","黄鹤","丹顶鹤"};
int index=0;
System.out.println("我的花园有很多鸟,种类包括:");
while(index<aves.length){
System.out.println(aves[index++]);
}
}
}
结果:
for循环
九九乘法
package rew;
public class MultiplicationTable {
public static void main(String[] args){
for(int i=0;i<=9;i++){
for(int j=0;j<+i;j++){
System.out.println(j+"*"+i+"="+i*j+"\t");
}
}
}
}
阅读全文
0 0
- while循环
- while循环
- while循环
- while循环
- while循环
- While循环
- while循环
- while 循环
- while循环
- while循环
- While循环
- while循环。。。
- while循环
- while循环
- while循环
- while循环
- while循环
- while 循环
- 栈帧布局
- C++
- UnityShader入门精要学习笔记(五):Unity中实现漫反射光照模型
- Java汉字按照拼音排序
- 008 Python语法之冒泡排序-插入排序
- while循环
- UnityShader入门精要学习笔记(六):Unity中实现高光反射模型
- 如何利用迅捷PDF编辑器在PDF文档上修改文字大小和颜色
- CHID
- java io 字节流 字符流
- bootstrap常用的类名
- shell编程(一)--入门
- [FWT] 51Nod 算法马拉松26 A A国的贸易
- Maven Setting.xml文件配置详细说明