Well, you can get this either by String.substring() or if you can distinguish it by a seperator u can make use of the StringTokenizer class
-----Original Message-----
From: Eric Fleming [mailto:[EMAIL PROTECTED]]
Sent: 25 October 2001 21:30
To: [EMAIL PROTECTED]
Subject: Strings
If I want to get a portion of a very long string, say 40 words, how would I
go about doing it? I looked at both the archives and the searched the net
and could not find what I was looking for. Please help.
Eric
===========================================================================
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://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium. Any views or opinions presented are solely those of the author and do not necessarily represent those of Jobpartners. Jobpartners is unable to guarantee the security (especially that of attached files) of any email content outside of our own computer systems.
