i
mport javax.swing.*;
public class ReverseArray {
public static void reverse(int b[]){
int left = 0;
int right = b.length -1;
while(left<right){
//exchange the left and right elements
int temp = b[left];
b[left] = b[right];
b[right] = temp;
left++;
right--;
}
}
public static void main(String a[]){
}
}
how should i write the main function..sorry i know it sound stupid ><''