previous | start | next

Input: System.in

System.in is an instance of type InputStream

InputStream methods are not so convenient.

int read()

This method returns one byte from the input each time it is called. It returns -1 at end of file.

How would you read the integers in a file?



previous | start | next