classURL{privateStringurl=null;publicURL(Stringurl){this.url=url;}// The url.publicStringremoveAnchor(){if(url!=null)returnurl.split("#")[0];// Get the part before the anchor.return"";}}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Java: