Possible Duplicate:
How do I reverse an int array in Java?
I need to reverse the order of the given numbers in the array without using a temp.
public class Reverse 
{
    public static void main (String[] args)
    {
        int[] num  = { 12, 34, 50, 67, 88 }, cl, cl2;
        for (i=0; i < a.length; i++)
        {
            cl = a[i];
            cl2 = a[(a.length - 1 )-1];
            System.out.println (cl1 + " " + cl2);
        }
    }
}
 
     
     
     
    