String operations
Hi,
I have string
http://127.0.0.1/
I later add some more text and build a complete URL to fetch a webpage. If the user forgets to enter the last backslash "/" I want to add it by my self.
How do I detect in this string if there is a slash at the end. strurl contains my url
String str = strurl.substring(strurl.lastIndexOf("/") );
might not help as there are two slashes after http.
thanks
@debug

