You iterate through your array and append the values to a StringBuffer.

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Stefan Ullrich
> Sent: Friday, September 08, 2000 3:04 PM
> To: [EMAIL PROTECTED]
> Subject: AW: How to Convert Array into String
>
>
> Of course there is:
> String abc = myval[0] + "," + myval[1] + ...
> but it's not a conversion but a concatenation
>
> regards
> Stefan
>
> -----Ursprungliche Nachricht-----
> Von: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]Im Auftrag von Kanojia Jogesh
> Gesendet: Freitag, 8. September 2000 08:44
> An: [EMAIL PROTECTED]
> Betreff: How to Convert Array into String
>
>
> Hi there
>
> I have one array consisting of 5 value
> ie
> myval[0]="one";
> myval[1]="two";
> myval[2]="three";
> myval[3]="four";
> myval[4]="five";
>
> is there any function that will copy the value of array into a string
> seprated by comma(without using any loop)
>
> ie abc ="one,two,three,four,five";
>
> Since I have worked on PHP3 , there i use to use join funtion
>
> How to achive this in java please help me out
>
> Please help me out
>
>
> Regards :-)
> Kanojia Jogesh
> Senior Web Developer
> IG Technologies, Mumbai,India
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to