2011-06-08から1日間の記事一覧

Groovyで文字列の末尾に文字列を追加する

文字列の末尾に文字列を追加するには、String#concat()、+演算子、 よる結合がある。 コード test1 = "abc" test2=test1.concat("def") println test1 println test2 println test1.class println test2.class test3 = "" test3 <<= "abc" test3 <<= "def" p…