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 函数用于对当前对象执行操作并返回任何值作为结果。