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

📅  最后修改于: 2022-03-11 14:52:14.444000             🧑  作者: 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}")