In this section, you will learn how to convert array to string.
Ads
TutorialsIn this program we have taken an array of type
String as "String stringarray[] = {"chandan", " " ,"tamana", " " ,"suman", " " ,"Ravi"};"
and to convert it to String we have used
"arrayToString(stringarray));"
as shown below. Therefore we get
the following output.
Here is the code of this program:
import java.util.*;
|
Output of the program:
C:\unique>javac arraytosting.java C:\unique>java arraytosting Array Value = chandan tamana suman Ravi C:\unique> |
Posted on: August 9, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles
Advertisements
Ads
Ads
Discuss: Convert Array to String View All Comments
Post your Comment