Java 实例 - 数组输出
通过循环输出数组
Welcome.java 文件
public class Welcome {
public static void main(String[] args){
String[] facesohos = new String[3];
facesohos[0] = "小鸟启蒙";
facesohos[1] = "菜鸟工具";
facesohos[2] = "菜鸟笔记";
for (int i = 0; i < facesohos.length; i++){
System.out.println(facesohos[i]);
}
}
}
public static void main(String[] args){
String[] facesohos = new String[3];
facesohos[0] = "小鸟启蒙";
facesohos[1] = "菜鸟工具";
facesohos[2] = "菜鸟笔记";
for (int i = 0; i < facesohos.length; i++){
System.out.println(facesohos[i]);
}
}
}
运行输出结果
小鸟启蒙 菜鸟工具 菜鸟笔记
尊贵的董事大人
英文标题不为空时 视为本栏投稿
需要关键字 描述 英文标题