I guess the first question is how the numbers are typed in. Are they typed in one per line or many per line. Haven't compiled this but this should work for one per line.
DataInputStream din = new DataInputStream(System.in);
while((
String s = din.readLine()) != null)
{
int tmpValue = Integer.parseInt(s);
}
If there are many per line look at using the StringTokenizer class.
[This message has been edited by Van Glass (edited November 19, 2000).]