Here you can find the source of dropExtensions(String FileName)
Parameter | Description |
---|---|
FileName | a parameter |
public static String dropExtensions(String FileName)
//package com.java2s; //License from project: Apache License public class Main { /**/*from ww w. j ava 2 s .com*/ * remove all extensions even if more then one * * @param FileName * @return */ public static String dropExtensions(String FileName) { int index = FileName.lastIndexOf("."); while (index > -1) { FileName = FileName.substring(0, index); index = FileName.lastIndexOf("."); } return (FileName); } }