Sign in
Log inSign up

I want to flip around the values of one array in java but this is not working, could someone tell me why ?

József Pallagi's photo
József Pallagi
·Feb 8, 2017
for (int i = 0; i <= sizeOfArr; i++) {
        for (int j = sizeOfArr; j >= 0; j--) {

            backwards[j]=arr[i];
          }     
    }