public class Bpp {
public static void main(String[] args) {
int data[] = new int []{1,2,3,4,5,6,7};
serve(data);
print(data);
int data[] = new int []{1,2,3,4,5,6,7};
serve(data);
print(data);
}
public static void serve(int arr[]){
int len = arr.length/2;
int hand =0;
int end =arr.length-1;
for(int x=0;x<len;x++){
int temp=arr[hand];
arr[hand]=arr[end];
arr[end]=temp;
hand++;
end--;}
}
public static void print(int dota[]){
for(int x=0;x<dota.length;x++){
System.out.print(dota[x]+",");
}
System.out.println();
}
public static void serve(int arr[]){
int len = arr.length/2;
int hand =0;
int end =arr.length-1;
for(int x=0;x<len;x++){
int temp=arr[hand];
arr[hand]=arr[end];
arr[end]=temp;
hand++;
end--;}
}
public static void print(int dota[]){
for(int x=0;x<dota.length;x++){
System.out.print(dota[x]+",");
}
System.out.println();
}
}