Here you can find the source of extractFileExt(String _sFilePathName)
public static String extractFileExt(String _sFilePathName)
//package com.java2s; public class Main { public static String extractFileExt(String _sFilePathName) { int nPos = _sFilePathName.lastIndexOf('.'); return nPos < 0 ? "" : _sFilePathName.substring(nPos + 1); }//www.ja v a2s . c om }