Concatenate, concatenation, or concat is a term that describes combining a string, text, or other data in a series without any gaps. In programming languages, an operator is used to denote concatenation. For example, In the Java programming language, the operator "+" denotes concatenation, as it does in other programming languages.
In the below Java example using the "+" operator on the string "Hello," and the string " how are you?" would produce the single string "Hello, how are you?" when the program runs.
System.out.println("Hello," + " how are you?");
print "Hello, " . "how are you?";
A variable could also be concatenated into the text as shown in the example below. In this example, the output would be "Hello Nathan, how are you?" when running the script.
my $name = "Nathan"; print "Hello " . $name . ", how are you?";
Excel and spreadsheet concatenate
See our How to combine cell values in Excel for full information on how to do this in Microsoft Excel.