Sunday Sep 01

Removing trailing slash

PDF Print E-mail
Thursday, 26 April 2012 09:44
AddThis Social Bookmark Button

Removing trailing slash in Java

Removing Trailing Slash

Name Version
 Apache Commons Lang 3.0+

If you are a user of Apache Common Lang you can use the following snippet to remove your trailing slash :

Remove trailing slash using Apache Commons Lang

import org.apache.commons.lang.StringUtils;
String myHost = ""
Tags: import , apache , snippet , slash , trailing , lang , removing , remove ,;

Add comment

Security code

Java Tutorial on Facebook