pork/examples/java.pork

11 lines
300 B
Plaintext
Raw Normal View History

2023-09-07 08:03:01 +00:00
func java_system_err()
native java "java.lang.System:static-getter:err:java.io.PrintStream"
func print_stream_println(stream, line)
2023-09-07 08:07:43 +00:00
native java "java.io.PrintStream:virtual:println:void:String"
2023-09-07 08:03:01 +00:00
export func main() {
let error = java_system_err()
print_stream_println(error, "Hello World")
}