JavaRush /Java Blog /Random EN /The reader.readLine() construction stopped working
Sashura1989
Level 32
Могилев

The reader.readLine() construction stopped working

Published in the Random EN group
The reader.readLine() construction stopped working - 1
package com.javarush.test.level13.lesson11.home03;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Solution
{
    public static void main(String[] args)
    {
        BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
        int s3 = Integer.parseInt(reader.readLine());
        System.out.print(s3);
    }
}
I reached the end of level 13 and I can’t work any further! readLineThe object method readerdoes not work at all, in the Idea it is underlined in red and when launched the error Error:(13, 50) java: unreported exception java.io.IOException; must be caught or declared to be thrown . I don’t know what happened and I can’t complete the tasks. What can you help?
Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION