How to find the lowest value in primitive integer array using loop?(java)