Fixed print-newline for JVM