java - How to get a substring from a string -
i have xml file i'm reading string,
http://localhost:8080/sdpapi/request/10/notes/611/
my question how can 611, of variable, can 100000, example, string?
split string
string input = "http://localhost:8080/sdpapi/request/10/notes/611/"; string output = input.split("notes/")[1].split("/")[0];
output value need
Comments
Post a Comment