九州体育网 - 十年信誉网站

Discuss / Java / 打卡

打卡

Topic source

YG嘿嘿

#1 Created at ... [] []
private static void test8() {
    int[] ns = { 1, 4, 9, 16, 25 };
    // 倒序打印数组元素:  
    for (int i = (ns.length - 1); i >= 0; i--) {
        System.out.println(ns[i]);
    }
}

  • 1

Reply