Home »
Code Examples »
Groovy Code Examples
Groovy String concatenation Code Example
The code for Groovy String concatenation
The strings in Groovy can be concatenated with the + operator:
assert 'ab' == 'a' + 'b'
assert 'xy' == 'x' + 'y'
Code by Shivang Yadav,
on July 24, 2022