MysorePak Posted September 10, 2015 Report Posted September 10, 2015 I have a string "12345|http://xxxxxxx:8009/abc/4," i need to convert to 12345/4 ela cheyali...?
gunturodu1 Posted September 10, 2015 Report Posted September 10, 2015 is that substring "|http://xxxxxxx:8009/abc/" remains constant for ever ? if yes.. create 3 substrings by using the expressions and then concat the last two.
tejak123 Posted September 10, 2015 Report Posted September 10, 2015 string.split('|'.first()) + string.split('/').last similar to that
MysorePak Posted September 10, 2015 Author Report Posted September 10, 2015 Thanks bhayya.. String newUrl =Url.substring(0,Url.lastIndexOf("|")+1)+Url.substring(Url.lastIndexOf("/") + 1); Edhi chesanu ... bhayya string.split('|'.first()) + string.split('/').last similar to that
innovative Posted September 10, 2015 Report Posted September 10, 2015 I have a string "12345|http://xxxxxxx:8009/abc/4," i need to convert to 12345/4 ela cheyali...? String or string length constant ga vuntaya .. if yes, check string.substring(firstIndex, lastIndex) method. Then concatenate both using string.contact method. You can get what you want.
Appaji Posted September 10, 2015 Report Posted September 10, 2015 String or string length constant ga vuntaya .. if yes, check string.substring(firstIndex, lastIndex) method. Then concatenate both using string.contact method. You can get what you want. aunty u cleared aa pillakayal doubts
The Warrior Posted September 11, 2015 Report Posted September 11, 2015 String or string length constant ga vuntaya .. if yes, check string.substring(firstIndex, lastIndex) method. Then concatenate both using string.contact method. You can get what you want. nuvvu avesham lo concat ni contact ani raasav .. pilladu as it is copy chesthee
Picha lite Posted September 11, 2015 Report Posted September 11, 2015 Java support kavali Ma frd okadu unadu, pm me if u need details
ramudu3 Posted September 11, 2015 Report Posted September 11, 2015 sHa_clap4 sHa_clap4 sHa_clap4 sHa_clap4 sHa_clap4 String or string length constant ga vuntaya .. if yes, check string.substring(firstIndex, lastIndex) method. Then concatenate both using string.contact method. You can get what you want.
tom bhayya Posted September 11, 2015 Report Posted September 11, 2015 sHa_clap4 sHa_clap4 sHa_clap4 sHa_clap4 sHa_clap4
Recommended Posts