Very simple code:
package Testing;

import java.io.*;

public class Test {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String string1 = reader.readLine();
        String string2 = reader.readLine();
        String string3 = reader.readLine();
        String string4 = reader.readLine();

        System.out.println("string1: " + string1);
        System.out.println("string2: " + string2);
        System.out.println("string3: " + string3);
        System.out.println("string4: " + string4);
    }
}
Why the hell IntelliJ console behaves like this: