All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.jsIO.java.io.PrintStream.vm Maven / Gradle / Ivy

There is a newer version: 3.5.12
Show newest version
package java.io;

class PrintStream(val oo : OutputStream) {

var result: String = ""

fun println() {
result = result + "\n"
}

fun print(s: String) {
result = result + s
}

fun println(s: String) {
print(s)
println()
}

fun print(s: Char) {
result = result + s
}

fun print(s: Int) {
result = result + s
}

fun print(s: Boolean) {
if(s){
result = result + "true"
} else {
result = result + "false"
}
}

fun println(s : Char){
print(s)
println()
}

fun flush(){
oo.result = result
}

fun close(){}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy