Hi, I wasn't quite sure where to post this but I'm 6 weeks into
java so I guessed this would be the best place. My problem is I need a user to be able to search for a type of property such as a Rental, Commercial or a For sale and also within their price range such as £10000, £50,000 etc. My code at the minute is not finding anything and I'm guessing it's because I'm asking it to be equal to two terms in the array rather than one. If I put this line
instead of
my search returns true but then I'm only searching on the one conditon when I need both to be true otherwise it was redundant asking for their price range if I can't use it.
So in my array, I have a rental for £10,000 at 1,1 and 2,1 I think? , therefore my search should return true as there is a match but I can't work out why it's not doing that.