Java File Path Create buildPath(String[] seperatedName)

Here you can find the source of buildPath(String[] seperatedName)

Description

build Path

License

LGPL

Declaration

private static String buildPath(String[] seperatedName) 

Method Source Code

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

public class Main {
    private static String buildPath(String[] seperatedName) {
        String iconName = "textures/items/";

        for (int i = 1; i < seperatedName.length - 1; i++) {
            iconName += seperatedName[i] + "/";
        }/* w  w w  .ja  v  a 2s. com*/

        iconName += seperatedName[seperatedName.length - 1] + ".png";

        return iconName;
    }
}

Related

  1. buildPath(String first, String... parts)
  2. buildPath(String part1, String part2)
  3. buildPath(String path, String file)
  4. buildPath(String... paths)
  5. buildPath(String... strings)
  6. buildPathArray(String xpath)
  7. buildPathString(String[] folders, boolean addDefaultValues)
  8. buildPathToApiTargetFolder(String apiPackageName, String path)
  9. filePath(String compchartimage)