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];
          }     
    }
Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2025 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct