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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -