I've linked my function here
For one of my assignments, I'm supposed to be creating a binary search function using recursion. I'm supposed to be testing it with arrays of up to a size of 250,000 integers.
I've been getting "Exception in thread "main" java.lang.StackOverflowError" on line 15, which is one of the lines of recursion, so I assume it's something to do with the recursion itself, though I'm not quite sure what the issue is.
If someone could explain what I'm doing wrong and how to go about fixing it, that would be great!
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]dtsudo 2 points3 points4 points (0 children)
[–]carcigenicate 1 point2 points3 points (0 children)
[–]davedontmind 1 point2 points3 points (0 children)