Tag Archives: java sorting

Sorting Java Array in 1 Loop (Psuedo Sorting) AP Java Prep

So  ..our student , Jeff was trying to write an method that sorts an array of ints  , called [crayon-5d5a20beb44cd105031655-i/] , using a single loop. He wrote the code below:. Download code So, was Jeff succesful? When this code is run, will the method return a sorted array. In this case that would be [crayon-5d5a20beb44d8620197572-i/]   ?     And the … Continue reading Sorting Java Array in 1 Loop (Psuedo Sorting) AP Java Prep →