Please enable JavaScript to use CodeHS

CodeHS Glossary

Concatenation Java

Concatenation is another word for combining. Concatenating Strings is when we add Strings together. For example, this code concatenates two strings and prints them out: ``` String one = "Mc"; String two = "Donalds"; // Concatenate one and two together String combined = one + two; // Prints out McDonalds System.out.println(combined); ```