`minimum`

equal to `Integer.MAX_VALUE`

. Then as you read them in, compare each number to `minimum`

. If it is smaller then replace `minimum`

with the new number. at the end `minimum`

will contain the smallest number. Given all your questions I think some time working through Java Tutorials Learning Paths[^] would help you.