runoops.com

Java 实例 – 数组输出

Java 实例

以下实例演示了如何通过循环输出数组:

public class Welcome {
    public static void main(String[] args){
        String[] runoopss = new String[3];
        runoopss[0] = "runoops自学教程";
        runoopss[1] = "runoops自学工具";
        runoopss[2] = "runoops自学笔记";
        for (int i = 0; i

以上代码运行输出结果为:

runoops自学教程
runoops自学工具
runoops自学笔记

Java 实例