My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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];
          }     
    }