templates.jsIO.java.io.PrintStream.vm Maven / Gradle / Ivy
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