Console issues when typing
Answered
Hi,
I have noticed when typing in the console some strange behavior. In the following image see how typing ("") results in ()". Is this a bug? or the console needs some additional configuration (or custom implementation) to support user input text as in the Terminal?

This is the Java code responsible for the console output:
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter a string: ");
String s = br.readLine();
System.out.println("you wrote: " + s);
}
}
Please sign in to leave a comment.
This looks like a bug, could you please report it https://youtrack.jetbrains.com/issues/IDEA and specify your IDE version, thanks