String interpolation: Difference between revisions

Content deleted Content added
Groovy: corr.
Line 190:
val apples = 4
val bananas = 3
val sentence = "A developer is a $quality. I have ${apples + bananas} fruitfruits"
println(sentence)
</syntaxhighlight>
The output will be:
<syntaxhighlight lang="output">
A developer is a superhero. I have 7 fruitfruits
</syntaxhighlight>
 
=== Nemerle ===