Java Path Combine combinePath(String part0, String... parts)

Here you can find the source of combinePath(String part0, String... parts)

Description

combine Path

License

Open Source License

Declaration

public static String combinePath(String part0, String... parts) 

Method Source Code


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

import java.io.File;

public class Main {
    public static String combinePath(String part0, String... parts) {
        final StringBuilder builder = new StringBuilder();
        builder.append(part0);/*from   w  w  w. j  av  a 2 s  . com*/
        for (String part : parts) {
            builder.append(File.separatorChar);
            builder.append(part);
        }
        return builder.toString();
    }
}

Related

  1. combineDisplayPaths(String parent_display, String display_path)
  2. combinePath(java.io.File parentDir, String... childDirs)
  3. combinePath(String basePath, String withPath)
  4. combinePath(String parent, String child)
  5. combinePath(String parent, String name)
  6. combinePath(String path1, String path2)
  7. combinePath(String path1, String path2, String pathSeperator)
  8. combinePath(String... paths)
  9. combinePath(String... paths)