question: public static String ripExtension ( String fileName ) { String retString = null ; int extStart = fileName . lastIndexOf ( '.' ) ; if ( extStart == - 1 ) retString = fileName ; else retString = fileName . substring ( 0 , extStart ) ; return retString ; }
target:  Strips an extension off of a file's filename.