I was looking at a previous question submitted a while back and had further inquiry on it. The link is here:
The first answer give it nearly answers my question, but not fully. In the one shown above the Array
has a collection of int
values. However, I have an array that stores String
values, therefore when I call Array[mid]
it won't allow this, since mid is an int
value and not a String
. I receive the error " The operator < is undefined for the argument type(s) Entry, String "
, I'm assuming because I'm calling mid
( an int
value ) with an array
of strings, although mid
really is a reference to the middle index
not the actual values stored in the array
.
I could potentially completely wrong here and therefore seem stupid :P but I'm pretty confused, any help appreciated.