Help me with this JAVA bug. (Quicksort Algorithm)

Words
77
Reading
1 min
Listen
Play
7y

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

Help me with this JAVA bug. (Quicksort Algorithm) | Ecency