WAP to concatenate two or more string with user-defined function.
Answers
Answered by
1
Answer:
You can merge/concatenate/combine two Java String fields using the + operator, as shown in this example code: // define two strings String firstName = "Fred"; String lastName = "Flinstone"; // concatenate the strings String fullName = firstName + lastName; The String fullName now contains "FredFlinstone".
PLEASE TAG ME AS BRAINLIEST
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Social Sciences,
8 months ago
English,
8 months ago
Environmental Sciences,
11 months ago
Math,
11 months ago
Math,
11 months ago