The concat() method is represented by the following syntax:
str1,str2,...,strn - It represent the strings to be combined.
Combination of strings.
Let's see some simple examples of concat() method.
Here, we will print the combination of two strings.Test it Now
Here, we will print the combination of three strings.Test it Now
In the last example, we provided the space between the strings while initializing it. Here, we will perform the similar task through the method.Test it Now
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week