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

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.