Java String Ends With endsWithoutSlash(String url)

Here you can find the source of endsWithoutSlash(String url)

Description

ends Without Slash

License

Open Source License

Declaration

public static String endsWithoutSlash(String url) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String endsWithoutSlash(String url) {
        return url.endsWith("/") ? url.substring(0, url.length() - 1) : url;
    }//from  w  ww .  j  a v a2s. c o m
}

Related

  1. endsWithNewline(String string)
  2. endsWithOne(final String src, final String[] dest)
  3. endsWithOne(String src, String... dest)
  4. endsWithOneOf(String value, String... ends)
  5. endsWithoutPathSeparator(final String path)
  6. endsWithSentenceSeparator(char[] token)
  7. endsWithSeparator(String str)
  8. endsWithSingleQuoteS(String s)
  9. endsWithSlash(final String path)