This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.File; | |
| /** | |
| * Retorna a extensão do arquivo. | |
| * | |
| * @param file | |
| * @return string Extensão | |
| */ | |
| public static String getExtension(String file) { | |
| return file.substring(file.lastIndexOf(".") + 1, file.length()); |