I am new to Java. I have a String URL as follows:
http://ift.tt/1fveTmx/42?param=true
I want to retrieve a part of this string. I don't want the last part in the URL and want to retrieve the path foo/bar/. I don't want domain name and last part(here 42).
Could you please let me know the best way to achieve this?
Thanks
Aucun commentaire:
Enregistrer un commentaire