How Can I Find an Item in an Array Within 2 items?

Is there a way to do this? For example, if I had an array of floats as follows: 1,2,3,4,5,6
And then I wanted to find and return an array of all the items that were between 2 and 5.
Is this possible without using a for each loop? Thanks in advanced.

Depends on your Data set. Not enough info provided to give you a Solution. I assume your Data will not be sorted and always +1 on the following Element, if thats the case you donĀ“t even have to have a Array in the first place.

Hmm not sure how to guide you on the right path now but take a look at this Video how to approach something like that step by step. Might also be helpfull for you to look into Search/Sort Algorithms and learn a bit about Big(O) notations and what they mean.

Good Luck mate =)