Here you can find the source of buildPath(String[] seperatedName)
private static String buildPath(String[] seperatedName)
//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; } }