Niyati Thakkar
關於 Niyati Thakkar
Niyati is a Technical Content Writer and an engineering student. She has written more than 50 published articles on Data Structures, Algorithms, Git, DBMS, and Programming Languages like Python, C/C++, Java, CSS, HTML, KOTLIN, JavaScript, etc. that are very easy-to-understand and visualize.
howto · 2024-02-15
Kotlin 中的高階函式
本教程教授如何將函式作為引數傳遞,以及如何在 Kotlin 中使用函式返回函式。
howto · 2023-10-12
Kotlin 中的三元條件運算子
本文介紹了三元運算子的替代方案,例如 if-else 表示式、if-else-if 階梯、when 表示式和使用 Kotlin 的 Elvis 運算子。
howto · 2023-01-30
在 Kotlin 中連線字串
要在 Kotlin 中連線兩個或兩個以上的字串,我們可以使用 +(加號)運算子、加號()方法、字串生成器和字串模板。
howto · 2023-01-30
在 Kotlin 中格式化字串
本文展示了在 Kotlin 中格式化字串的兩種方法,即字串模板,即使用 $(美元)符號和使用 String.format() 方法。
howto · 2023-01-30
Kotlin 中的 let 關鍵字
Kotlin 中的作用域函式之一是 let。lambda 函式用於對當前物件執行操作並返回任何值作為結果。