66 840
Assignments Done
99,1%
Successfully Done
In October 2018

Answer to Question #3485 in Java | JSP | JSF for Y mukundareddy

Question #3485
(1) Write a program to concatenate two strings?
Expert's answer

public class StringConcatenator
{
public static void main(String[] args)
{
& String str1 = "Hello,";
& String str2 = " World!";
& String concat = str1 + str2; & // Concatenating of two strings

& System.out.println("First string = '" + str1 + "'");
& System.out.println("Second string = '" + str2 + "'");
& System.out.println("The concatenated string = '" + concat + "'");
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions