java - Substring part of a string -
first, want excuse if problem discussed , i'll glad if point me answered question! couldn't find 1 helps me out.
i have extract lastly part after lastly "/" in such string: /test/test2/test3
i have extract "test3". cannot way myself i'm asking help.
in case need isolate other parts of string, easiest way.
string s="a/b/c"; //works "a b c" , "a/b/c/" string[] parts=s.split("/"); system.out.println(parts[parts.length-1]);
java android string
No comments:
Post a Comment