Remove file extension Tag(s): IO
public static String removeExtension(String fileName) { int extPos = fileName.lastIndexOf("."); if(extPos == -1) { return fileName; } else { return fileName.substring(0, extPos); } }
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com