Weird problem with ISR and BR
Hi, i have been using ISR and BR for some time now, and it has been working fine.
But now, whenever i try to use ISR and BR, the program compiles but they do not work, as in if i try to accept a value with the correct syntax, the program executes and compiles fine, but it does not ask for a value.
If i copy and paste the exact same code from another program where the ISR and BR works, then it works in the new program too.
This is a small test class I made to test ISR and BR right now, and it does not open the terminal or give me an option to enter anything
import java.io.*;
publicclass Test
{
publicvoid display()throws IOException
{
InputStreamReader isr =new InputStreamReader(System.in);
BufferedReader br =new BufferedReader(isr);
String s = br.readLine();
System.out.println(s);
}
}
NOTE: In the above code, if i add a print statement like System.out.println anywhere, then it works fine - but why does this happen?

