• + 0 comments

    For JAVA

    int[] a=new int[n];

        for(int i=n-1;i>=0;i--){
            a[i]=arr.get(i);  
            System.out.print(a[i]+" ");
        }