Hi all, I can't run a task that requires keyboard input (via console) in IntelliJ. Via CodeGym the code always works without problems. Here is an example:
package de.codegym.task.task04.task0412;

/*
Positive und negative Zahlen
*/

import java.io.*;

public class Solution {
    public static void main(String[] args) throws Exception {
        //schreib hier deinen Code
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String s = reader.readLine();
        System.out.println(s);
    }
}
When I then run the program, this does not find an end. I can stop it using the appropriate button, but that does not solve the problem. The output shows the following: /Library/Java/JavaVirtualMachines/jdk-19.jdk/Contents/Home/bin/java -javaagent:/Users/Kathi/Desktop/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=49281:/Users/Kathi/Desktop/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath /Users/Kathi/Downloads/CodeGymTasks 2/CodeGymTasks/out/production/1.JavaSyntax de.codegym.task.task04.task0412.Solution Can anyone help me? I would like to work in IntelliJ and not just program via CodeGym, but this is frustrating.... am I doing something wrong?