摘要:
https://guolin.blog.csdn.net/?type=blog 阅读全文
posted @ 2022-09-06 22:52
biubidio
阅读(77)
评论(0)
推荐(0)
摘要:
###字符串内嵌表达式 "hello, ${obj.name}. nice to meet you!" 另外,当表达式中仅有一个变量的时候,还可以将两边的大括号省略,如下所示: "hello, $name. nice to meet you!" ###函数的参数默认值 fun printParams 阅读全文
posted @ 2022-09-06 16:30
biubidio
阅读(20)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2022-09-06 15:42
biubidio
阅读(13)
评论(0)
推荐(0)
摘要:
##Lambda表达式 {参数名1: 参数类型, 参数名2: 参数类型 -> 函数体} 例:maxBy函数 val list = listOf("Apple", "Banana", "Orange", "Pear", "Grape", "Watermelon") val lambda = { fru 阅读全文
posted @ 2022-09-06 15:18
biubidio
阅读(59)
评论(0)
推荐(0)
摘要:
java: new Thread(new Runnable() { @Override public void run() { System.out.println("Thread is running"); } }).start(); 如果我们在Kotlin代码中调用了一个Java方法,并且该方法 阅读全文
posted @ 2022-09-06 15:12
biubidio
阅读(21)
评论(0)
推荐(0)
摘要:
Markdown模板 阅读全文
posted @ 2022-09-06 00:06
biubidio
阅读(18)
评论(0)
推荐(0)

浙公网安备 33010602011771号