JAVA 7.12
import java.util.Scanner ; public class ReverseArray { public static void main ( String [ ] args ) { int i ; int [ ] iList = new int [ 10 ] ; int [ ] iList2 = new int [ 10 ] ; Scanner input = new Scanner ( System . in ) ; // input array for ( i = 0 ; i < 10 ; i ++ ) iList [ i ] = input. nextInt ( ) ; iList2 = Reverse ( iList,iList. length ) ; for ( i = 0 ; i < 10 ; i ++ ) System . out . print ( iList2 [ i ] + " " ) ; } public static int [ ] Reverse ( int [ ] array, int L ) { int i,j ; int [ ] iCopy = new int [ 10 ] ; for ( i = 0 ,j = L - 1 ; j >= 0 ; j -- ,i ++ ) iCopy [ i ] = array [ j ] ; return iCopy ; }