Here you can find the source of reverseArray(Object[] arr)
public static Object[] reverseArray(Object[] arr)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; import java.util.Collections; import java.util.List; public class Main { public static Object[] reverseArray(Object[] arr) { List<Object> list = Arrays.asList(arr); Collections.reverse(list); return list.toArray(); }//w ww .j av a2s .com }