@Test public void testGetBasename() { assertEquals("cc.dd", FileName.getBasename("aa/bb/cc.dd")); assertEquals("cc.dd", FileName.getBasename("aa\\bb\\cc.dd")); }
public static String getBasename(String path) { return path.replaceAll(".*/", "").replaceAll(".*\\\\", ""); }
FileName { public static String getBasename(String path) { return path.replaceAll(".*/", "").replaceAll(".*\\\\", ""); } }
FileName { public static String getBasename(String path) { return path.replaceAll(".*/", "").replaceAll(".*\\\\", ""); }  }
FileName { public static String getBasename(String path) { return path.replaceAll(".*/", "").replaceAll(".*\\\\", ""); }  static String getBasename(String path); static String removeUnsupportedChars(String path); }
FileName { public static String getBasename(String path) { return path.replaceAll(".*/", "").replaceAll(".*\\\\", ""); }  static String getBasename(String path); static String removeUnsupportedChars(String path);  }