공부
[kotlin] public static void main
승가비
2022. 8. 18. 00:15
728x90
class Test {
companion object {
@JvmStatic
fun main(args: Array<String>) {}
}
}
https://stackoverflow.com/questions/53989520/public-static-void-main-in-kotlin
public static void main in Kotlin
In Java, especially in Android studio, every time that I want to run or test some Java source code quickly, I will create public static void main (shortkey: psvm + tab) and the IDE will show "Play"
stackoverflow.com
728x90