摘要:
In Java, when you write code in try(...), if exception throw, the resource will be closed automactially: This is not necessary in Kotlin fun printFile 阅读全文
posted @ 2020-10-30 01:39
Zhentiw
阅读(164)
评论(0)
推荐(0)
摘要:
In java, it requires you to handle the exception when you declaring and using the code: public class BoringJavaCode { public static Double divide(int 阅读全文
posted @ 2020-10-30 01:37
Zhentiw
阅读(158)
评论(0)
推荐(0)
摘要:
List is not mutable, when you want to add data into list, you can do is: "adding data to a mutableList", then return a immutable list by calling toLis 阅读全文
posted @ 2020-10-30 01:20
Zhentiw
阅读(379)
评论(0)
推荐(0)