File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
to divide a string
Joined: Mar 24, 2009
Mar 29, 2010 12:51:54
how to divide a
into 3 parts and assign it to three different variables?
Joined: Oct 27, 2005
Mar 29, 2010 12:55:15
You can use String.split if you have a special separator. Another option is a combination of indexOf and substring. In both cases it's important to know where to split the String.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
Joined: Mar 09, 2010
Mar 30, 2010 02:32:27
On what basis do you want to split your string??
I agree. Here's the link:
subject: to divide a string
Help with a java Calculator
Split string using regular expression java
Easy Question - Modulo Operator
Trouble with Proxies. Invocation Handler not called - what am I doing wrong?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015