Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 20335

Gradle print vs println

$
0
0

Bringing this up to attention.

Currently, whether in IntelliJ IDEA or Netbeans, both only flush when there is a newline character.

System.out.printf(“xyz\n”);
or
System.out.println(“xyz”);

These two above works. These two below however, do not work until there is another \n

System.out.print(“xyz”);
System.out.printf(“xyz”);

This makes it impossible to obtain user input at the same line due to the fact that System.out.flush() does not work either.


Viewing all articles
Browse latest Browse all 20335

Trending Articles