You can simply do it like in Java:
System.err.println("hello stderr")
The stdout standard output gets a special shorter version through some helper methods in Kotlin, as this is the most commonly used output. You can use this with the full form System.out.println
.
source
to share