I want to flip around the values of one array in java but this is not working, could someone tell me why ?
for (int i = 0; i <= sizeOfArr; i++) {
for (int j = sizeOfArr; j >= 0; j--) {
backwards[j]=arr[i];
}
}
for (int i = 0; i <= sizeOfArr; i++) {
for (int j = sizeOfArr; j >= 0; j--) {
backwards[j]=arr[i];
}
}