17783006457

kotlin学习之HelloWord

电脑版发表于:2019/8/21 10:40
class  Hello(val name: String){
    fun output(){
        println("Hello,$name")
    }
}

fun main(){
    Hello("world").output()
}

个人感觉:Kotlin极为简洁,学习成本较低

关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢