contains() method is used wrongly, Float[] newArrayName for certain retrieved elements is not working