Welcome to JavaRanch
We expect newbies' questions here. That's why we have a beginner's forum in the first place
I think your real problem is, you are trying to mix two things. You appear to be sorting your harvest, and seeing how happy you are with the quality of
fruit. Don't try to do both things simultaneously.
Are you obliged to implement your own sort methods, or can you simply use a linear search through your array? Are you supposed to implement this sort of method?
If you think you have got it to work, try this sort of thing
That should show whether that method works.
Get that bit working, and don't try to do the whole lot in one fell swoop.