package lectures.exceptions.extra;
import util.annotations.WebDocuments;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
@WebDocuments({"Lectures/ExceptionsExtra.pptx", "Lectures/ExceptionsExtra.pdf", "Videos/ExceptionsExtra.avi"})
public class LinersReaderThrowingExistingException {
static BufferedReader input = new BufferedReader(
new InputStreamReader(System.in));
static int numberOfInputLines(String[] args) throws IOException {
try {
return Integer.parseInt(args[0]);
} catch (ArrayIndexOutOfBoundsException e) {
throw new IOException ("First argument missing");
}
}
}