How do I split the string using forward slash? I've tried with following code:
I have string String x="10/20//30;expecting values 10,20,30.
When I tried to split using x.split("/"); then it only splitting 10,20,"",30
When I tried to split using x.split("//"); then it only splitting 10/20,30.
Please help me to split correctly. Is there any way to skip the one slash if there are 2 slashes present?
Regards, murali