Look at java's java.util.StringTokenizer class and this is trivial.

  -j3

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of R.Muthukumar
> Sent: Thursday, February 15, 2001 11:12 PM
> To: [EMAIL PROTECTED]
> Subject: spliting a comma seperated string
>
>
> Hi!
> I have a string like "I am, you are, we all, go for meeting".
> I want to split this string into different strings and store into
> an array.
> The array should contain I am as the first element and you are as
> the second
> element and so on.
> That is my requirement is to split the string where were it finds
> the comma
> and put it in the array.
> Can anyone give me the code for this...
> Thanks in advance
> Muthu
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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