update idea

This commit is contained in:
2022-05-11 16:59:14 +08:00
parent 611a82f17b
commit aa0db58531
9 changed files with 368 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
class InitAndSingleton{
//初始化
init{
println("init")
}
//定义静态方法
companion object{
//方法实现
fun function(){
}
}
}

7
src/main/kotlin/Main.kt Normal file
View File

@@ -0,0 +1,7 @@
fun main(args: Array<String>) {
println("Hello World!")
// Try adding program arguments via Run/Debug configuration.
// Learn more about running applications: https://www.jetbrains.com/help/idea/running-applications.html.
println("Program arguments: ${args.joinToString()}")
}