4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

Help me with this JAVA bug. (Quicksort Algorithm)

So, yesterday I learned about the quicksort algorithm in JAVA. I watched a couple of youtube videos and then understood the concept of how it works. Later this morning, I tried writing its code in JAVA. Everything looked fine but after I executed that code, it showed me ArrayIndexOutOFBoundException as shown in the picture below:

I am here to seek help from the JAVA experts out there in this community. Here is the link to the code.

https://paste.ofcode.org/g33hJU8sUi63CC3jEHN5Cv

6 upvotes $0.06

Replies (3)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: