Reproducible on both Netbeans & IntelliJ IDEA.
Basically, if I were to create a simple main program like this
public static void main(String[] args) { System.out.print("Hello World"); }
and run it on Netbeans/IntelliJ with Gradle. It won't work print out in both Netbeans & IntelliJ IDEA when I'm using Gradle. Not even System.out.flush()
will help too.
Problem is, I'm creating a console-based application and I want to accept user's input on the same line. This does NOT happen in Ant/Maven, and only happens in Gradle.
Any suggestions or workarounds?
Thank you.
Linked to: Gradle print vs println and https://discuss.gradle.org/t/gradle-print-vs-println/21334/3 , but so far, no solutions on both threads
EDIT: Fixed in IntelliJ IDEA 2020.1, however, still not fixed in Netbeans 12.0