Java Program example to demonstrate String concat method

Program

public class StringConcat
{
	public static void main(String[] args)
	{
		String str = "welcome to oodlescoop";
		str = str.concat(" tutorials!!!");
		System.out.println("Concatenated String: " + str);
	}
}

Output

Concatenated String: welcome to oodlescoop tutorials!!!