String concat example

Concat method of String in java is used to add a new String at the end of the original String.

String concat example

Output

Reference

1. String API