# Gradle print vs println

**URL:** <https://discuss.gradle.org/t/gradle-print-vs-println/21334>\
**Category:** Help/Discuss\
**Created:** [January 25, 2017, 2:27pm UTC](https://discuss.gradle.org/t/gradle-print-vs-println/21334 "2017-01-25T14:27:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nanoPop12](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nanoPop12](https://discuss.gradle.org/u/nanoPop12)\
**Post date:** [July 21, 2020, 3:41am UTC](https://discuss.gradle.org/t/gradle-print-vs-println/21334/3 "2020-07-21T03:41:41Z")

</div>

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.

---

_[View the full topic](https://discuss.gradle.org/t/gradle-print-vs-println/21334)._
