19
Answers

separate last 3 words & first 2 words from a string

rachayita jaiswal

rachayita jaiswal

10y
1.5k
1
Hi,

 I have string str = "12.95102921601837,77.5755615066737,108, Parvatipura, VV Puram, Basavanagudi, Bangalore, Karnataka 560004, India"

now i want output as

                   string srt1 = 12.95102921601837
   string srt2 = 77.5755615066737
           string srt3 = 108, Parvatipura, VV Puram, Basavanagudi
                   string srt4 = Bangalore
                   string str5 = Karnataka
                   string str6 = 560004, India

i want this output.
Please its urgent....

Answers (19)