find files extension when i give filename in java code example Example: how to get filename without extension in java FilenameUtils.removeExtension(fileNameWithExt);