How to concatenate a string to the end of existing string in Groovy

1 Answer

0 votes
String s = "Groovy Java Python"

s = s.concat(" PHP");

println(s)



 
/*
run:
 
Groovy Java Python PHP
 
*/

 



answered Oct 1, 2020 by avibootz

Related questions

1 answer 189 views
1 answer 251 views
1 answer 171 views
1 answer 194 views
1 answer 175 views
175 views asked Oct 2, 2020 by avibootz
1 answer 204 views
1 answer 167 views
...