63 800
Assignments Done
99,5%
Successfully Done
In August 2018

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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions