Java Path Create toPathsFromArray(final String[] items)

Here you can find the source of toPathsFromArray(final String[] items)

Description

to Paths From Array

License

Open Source License

Parameter

Parameter Description
items a parameter

Declaration

public static String toPathsFromArray(final String[] items) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from   www . j  a v  a  2  s. co  m*/
     * @param items
     * @return
     */
    public static String toPathsFromArray(final String[] items) {
        if (items == null) {
            return "";
        }

        final StringBuilder dirStr = new StringBuilder(1024);
        for (final String dir : items) {
            dirStr.append(dir).append(";");
        }

        return dirStr.toString();
    }
}

Related

  1. toPath(String... paths)
  2. toPath(String[] array)
  3. toPathIndex(String fileName)
  4. toPathName(String name)
  5. toPathPart(String fileName)