将一个数组逆序输出

package lianxi;

public class Shuzunixushuchu {

    public static void main(String[] args) {
        int[] ary={1,2,3,4,5,6,7};
        for (int i = ary.length-1; i >=0; i--)
        {
        System.out.print(ary[i]+" ");
    
        }
    }

}

posted @ 2016-05-17 15:57  凌零聆  阅读(3701)  评论(0编辑  收藏  举报