使用switch与自增运算符循环遍历数组

    xiaoxiao2021-03-25  129

    package 基本语法; public class ErgodicArray { public static void main(String[] args) { int []aves=new int[]{1,2,3,4,5,6,7,8,9}; int dex=0; System.out.println("使用switch与自增运算符循环遍历数组:"); while(dex<aves.length) { System.out.println(aves[dex++]); } } }
    转载请注明原文地址: https://ju.6miu.com/read-6904.html

    最新回复(0)