Java Find Smallest Integer