Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static final String PATH_SEPARATOR = ":"; public static String getComponentNormalizedName(String path) { String[] subComponents = path.split(PATH_SEPARATOR); return subComponents[subComponents.length - 1]; } }