📜  字符串中的 kotlin 变量 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:24.138000             🧑  作者: Mango

代码示例2
// Use the $ sign to get the variable value inside a string:

//Example 1:
println("$days days and $hours hours to go!")
  
//You can also use {} to contain expressions:
println("${days*24} hours to go!")
println("${myList}")