import java.util.Scanner;
class reverse {
/**
* @param args
*/
public static void main
(String[] args
) { System.
out.
printf("Enter the number of values in array: "); Scanner scanner
= new Scanner
(System.
in); int n;
n = scanner.nextInt();
int[] a1 = new int[n];
int i;
System.
out.
printf("Enter the value in the array: "); for (i = 0; i < n; i++){
a1[i] = scanner.nextInt();
}
int j;
int k;
for (i = 0; i < n/2; i++){
j = a1[i];
k = a1[n-i-1]; //error line;
a1[i]=k;
a1[n-i-1]=j;
}
for(i = 0; i < n; i++){
}
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwoKY2xhc3MgcmV2ZXJzZSB7CgogICAgLyoqCiAgICAgKiBAcGFyYW0gYXJncwogICAgICovCiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGYoIkVudGVyIHRoZSBudW1iZXIgb2YgdmFsdWVzIGluIGFycmF5OiAiKTsKICAgICAgICBTY2FubmVyIHNjYW5uZXIgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgICAgIGludCBuOwogICAgICAgIG4gPSBzY2FubmVyLm5leHRJbnQoKTsKCiAgICAgICAgaW50W10gYTEgPSBuZXcgaW50W25dOwogICAgICAgIGludCBpOwoKICAgICAgICBTeXN0ZW0ub3V0LnByaW50ZigiRW50ZXIgdGhlIHZhbHVlIGluIHRoZSBhcnJheTogIik7CiAgICAgICAgZm9yIChpID0gMDsgaSA8IG47IGkrKyl7CiAgICAgICAgICAgIGExW2ldID0gc2Nhbm5lci5uZXh0SW50KCk7CiAgICAgICAgfQogICAgICAgIAogICAgICAgIGludCBqOwogICAgICAgIGludCBrOwoKICAgICAgICBmb3IgKGkgPSAwOyBpIDwgbi8yOyBpKyspewogICAgICAgICAgICBqID0gYTFbaV07CiAgICAgICAgICAgIGsgPSBhMVtuLWktMV07IC8vZXJyb3IgbGluZTsKICAgICAgICAgICAgYTFbaV09azsKICAgICAgICAgICAgYTFbbi1pLTFdPWo7CiAgICAgICAgfQogICAgICAgIGZvcihpID0gMDsgaSA8IG47IGkrKyl7CiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnQoIiAiK2ExW2ldKTsKICAgICAgICB9CiAgICB9Cn0=