Kotlin_main()方法和第一行:Hello World
code
package com.zjgsu.cxxu.memowithmindmap.util
object Test {
/*use the @JvmStatic annotation*/
@JvmStatic
fun main(args: Array<String>) {
println("Hello kotlin")
}
}
/**
* //in java:
* public class TestJavaMain {
* //the main method:
public static void main(String[] args) {
System.out.println("hello java");
}
}*/
with shortcut:quick write
psvmo:
(just like the psvm in java)

sout :this also works:(println())


浙公网安备 33010602011771号