The minimum is the smallest number. So as you read them in, start by setting variable
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.