Cómo leer la entrada entera usando BufferedReader Java

BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
int num = Integer.parseInt(reader.readLine());
Annoying Alligator