Java Path Normalize normalizePath(String path)

Here you can find the source of normalizePath(String path)

Description

normalize Path

License

Apache License

Declaration

public static String normalizePath(String path) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final String FORWARD_SLASH = "/";

    public static String normalizePath(String path) {
        return path.endsWith(FORWARD_SLASH) ? path.substring(0, path.length() - 1) : path;
    }/*from w ww. j a va2s . co m*/
}

Related

  1. normalizePath(String path)
  2. normalizePath(String path)
  3. normalizePath(String path)
  4. normalizePath(String path)
  5. normalizePath(String path)
  6. normalizePath(String path)
  7. normalizePath(String path)
  8. normalizePath(String path)
  9. normalizePath(String path)