for (int counter = myArray.length - 1; counter >= 0; counter--) {
for (int counter = myArray.length - 1; counter >= 0; counter--) {
// for testing
int myArray[]={1,2,3,4,5,6,7,8};
for(int counter=myArray.length; counter > 0;counter--){
System.out.println(myArray[counter]);
}