Convert in kotlin JavaSAMT, the Java couse of the school SAMT.
File
hello.kt
fun main(args: Array<String>) {
println("Hello, World!")
}Compile
On shell:
kotlinc hello.kt -include-runtime -d hello.jarRun
On shell:
java -jar hello.jar| Name | Name | Last commit date | ||
|---|---|---|---|---|
Convert in kotlin JavaSAMT, the Java couse of the school SAMT.
File
hello.kt
fun main(args: Array<String>) {
println("Hello, World!")
}Compile
On shell:
kotlinc hello.kt -include-runtime -d hello.jarRun
On shell:
java -jar hello.jar