Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
How to break a long String into small parts?
raj malhotra
Ranch Hand
Posts: 294
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
Is there any method in the
Java
1.5 API ,with which i can break a long
string
into small strings by specifying the length of smaller string.
Thanks
Ulf Dittmer
Rancher
Posts: 43081
77
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
That's what the String.substring methods do.
raj malhotra
Ranch Hand
Posts: 294
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks Ulf.
Piet Verdriet
Ranch Hand
Posts: 266
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Or you could use String.split(...), which immediately returns an array of Strings.
[ October 09, 2008: Message edited by: Piet Verdriet ]
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Passed.. oopppsss i did it again 149/155
Problems making an unique ID for every word
Parameter value
inserting line break in <h:outputText> value
Line break
More...