Java array: Finding index always returns the highest

welcome to shbcf.ru