Please correct my code. I don't know what to write to express this if (messyArray[i] >= messyArray[j])
Fantastic news! We've Found the answer you've been seeking!
Question:
Please correct my code. I don't know what to write to express this
if (messyArray[i] >= messyArray[j]) // AND ELEMENT IS NOT ALREADY IN orderedArray
I am trying to order messyArray by creating a new array called orderedArray and iterating through each element to determine if its the biggest or not. This should (in theory) give me
orderedArray: [5,4,3,2,1]
I know I suck in Java. Sorry about that
Related Book For
Accounting
ISBN: 978-0324401844
22nd Edition
Authors: Carl S. Warren, James M. Reeve, Jonathan E. Duchac
Posted Date: