No matter where I place int max = ints[0]; int min = ints[0]; there is alway a part of code that can't see int max and int min.