Link to home
Start Free TrialLog in
Avatar of techques
techques

asked on

How to get first value of a String with split delimiter?

Hi

I have a String v = "3,6,8,10";
How can I get the value '3' and '8'?


v.split("\\,") //how to use it to get the value?

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Bart Cremers
Bart Cremers
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial