Simple Java Sorting Algorithm
By
Rheinwasser
in Programming
in Programming
Go to solution
Solved by Ganz,
if(pArray[i - 1] > pValue)
I think it might be in that line. Since you are going down in your for loop. And you stop it when i > -1 meaning i can = 0. Well when i =0, pArray[0-1] would be out of bounds.
-
Topics
-
0
-
derekchan ·
Posted in New Builds and Planning4 -
0
-
1
-
5
-
1
-
5
-
kerriya ·
Posted in Cases and Mods8 -
octester ·
Posted in Troubleshooting7 -
DavidPatrascu ·
Posted in General Discussion9
-
-
play_circle_filled
Latest From ShortCircuit:
The coolest looking monitor. Period. - ASUS ROG display at Computex (Sponsored)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now