Here you can find the source of assertNoSlash(final String ofString)
public static String assertNoSlash(final String ofString)
//package com.java2s; public class Main { public static String assertNoSlash(final String ofString) { if (!ofString.endsWith("/")) { return ofString; }/*from ww w . j av a 2s . c o m*/ return ofString.substring(0, ofString.length() - 1); } public static int length(final String s, final String separator) { final String[] list = s.split(separator); return list.length; } }