@Test public void testToSuffix() { System.out.println(FileUtil.toSuffix("me.java")); }
public static String toSuffix(String fileName) { String name = null; try { int index = fileName.lastIndexOf("."); name = fileName.substring(0, index); } catch (Exception e) { e.printStackTrace(); } return name; }
FileUtil { public static String toSuffix(String fileName) { String name = null; try { int index = fileName.lastIndexOf("."); name = fileName.substring(0, index); } catch (Exception e) { e.printStackTrace(); } return name; } }
FileUtil { public static String toSuffix(String fileName) { String name = null; try { int index = fileName.lastIndexOf("."); name = fileName.substring(0, index); } catch (Exception e) { e.printStackTrace(); } return name; }  }
FileUtil { public static String toSuffix(String fileName) { String name = null; try { int index = fileName.lastIndexOf("."); name = fileName.substring(0, index); } catch (Exception e) { e.printStackTrace(); } return name; }  static boolean mkdir(String path); static boolean mkdirs(String path); static void copyDir(String path, String copyPath); static void nioTransferCopy(File source, File target); static byte[] input2byte(InputStream inStream); static boolean writeFile(String source, String filePath, boolean append); static boolean writeFileNotAppend(String source, String filePath); static boolean writeFile(String source, String filePath, boolean append, String encoding); static boolean writeFile(String source, File file, boolean append); static String getFileContent(String fileName); static String getFileContent(InputStream inputStream); static File[] getResourceFolderFiles(String folder); static boolean nioWriteFile(String contents, String filePath); static boolean nioWriteAppendable(String contents, String filePath); static String toSuffix(String fileName); }
FileUtil { public static String toSuffix(String fileName) { String name = null; try { int index = fileName.lastIndexOf("."); name = fileName.substring(0, index); } catch (Exception e) { e.printStackTrace(); } return name; }  static boolean mkdir(String path); static boolean mkdirs(String path); static void copyDir(String path, String copyPath); static void nioTransferCopy(File source, File target); static byte[] input2byte(InputStream inStream); static boolean writeFile(String source, String filePath, boolean append); static boolean writeFileNotAppend(String source, String filePath); static boolean writeFile(String source, String filePath, boolean append, String encoding); static boolean writeFile(String source, File file, boolean append); static String getFileContent(String fileName); static String getFileContent(InputStream inputStream); static File[] getResourceFolderFiles(String folder); static boolean nioWriteFile(String contents, String filePath); static boolean nioWriteAppendable(String contents, String filePath); static String toSuffix(String fileName);  }