Computer Science, asked by swatipriya2002dbg, 7 months ago

WAP to concatenate two or more string with user-defined function.​

Answers

Answered by arya8578
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