The java string concat() method combines specified string at the end of this string. It returns combined string. It is like appending another string.
The signature or syntax of string trim method is given below:
public String concat(String anotherString)
anatherString : another string i.e. to be combined at the end of this string.