77 456
Assignments Done
Successfully Done
In July 2019

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

Question #3489
(3) Write a program to copy array of characters in to a string? And display it on screen.
Expert's answer
public class CharactersIntoString
public static void main(String[] args)
char[] charactersArray = {'s', 'o', 'm', 'e', ' ', 's', 't', 'r', 'i', 'n', 'g'};
String str = "";
for (int i = 0; i < charactersArray.length; i++)
str += charactersArray[i];
System.out.println("The result string = " + str);

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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions