A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Retrieve delimetted value from String
Joined: Jan 09, 2003
Dec 15, 2004 06:27:00
, I have value as String vTest = "ABC#XYZ#PQR#STV"
How do i retrieve the value ABC, XYZ each by each which is delimetted by #
Joined: May 15, 2001
Dec 15, 2004 06:34:00
Joined: Dec 09, 2004
Dec 15, 2004 17:27:00
will work, the split method works for simple strings and delimiters like this. See <http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#split(
Joined: Jan 29, 2003
Dec 15, 2004 17:41:00
And in JDK 5 you can try Scanner. So many ways to solve one problem!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Retrieve delimetted value from String
Doubt regarding REAL EXAM
Passed SCJP with 96%
can class be declared static?
Collection in java
Strings and their constant pool
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015