Kotlin 中 Java 靜態方法的等價物是什麼? - What is the equivalent of Java static methods in Kotlin?

問題:

There is no static keyword in Kotlin. Kotlin 中沒有static關鍵字。

What is the best way to represent a static Java method in Kotlin?在 Kotlin 中表示static Java 方法的最佳方式是什麼?


解決方案:

參考一: https://en.stackoom.com/question/2jJZk
參考二: https://stackoom.com/question/2jJZk
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章