I know for just finding the middle index, you could use the line of code Norm put up for you..."middle element = (array.length+1)/2"
If you have a count, you could use "count/2" as count would...
Type: Posts; User: arsparfven
I know for just finding the middle index, you could use the line of code Norm put up for you..."middle element = (array.length+1)/2"
If you have a count, you could use "count/2" as count would...
I don't know how your methods are set up, but if you have a global array of integers ( int[] guesses or something like that ), each the user inputs a guess, which has to be looped somehow I assume,...