what's wrong in this code? I'm trying to make compiler accept my keyboard input; but compilation is not ending while it's also not throwing any error or warning. I'm using Eclipse 4.14 for Mac OS X. Can anyone suggest.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class TestInputStream {
public static void main(String args[]) throws IOException {
InputStreamReader Obj = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(Obj);
int a = Integer.parseInt(br.readLine());
System.out.println("Please enter your choice");
System.out.println("You have entered " + a);
}
}