[Groovy]文字列の中の式を使用する
書式
${式}
使用例
class SampleArk { static void main(String[] args) { def strA = 'arkgame' println strA println "study skill in ${strA.capitalize()} com" } }
結果
arkgame
study skill in Arkgame com
Coding Changes the World
書式
${式}
使用例
class SampleArk { static void main(String[] args) { def strA = 'arkgame' println strA println "study skill in ${strA.capitalize()} com" } }
結果
arkgame
study skill in Arkgame com