Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

get file extension java

import org.apache.commons.io.FilenameUtils;

String ext1 = FilenameUtils.getExtension("/path/to/file/foo.txt"); // returns "txt"
String ext2 = FilenameUtils.getExtension("bar.exe"); // returns "exe"
Comment

how to get file extention in java

//* manoj(tvmk)
String attachPath = (String) map.get("attachmentPath");//springboot
String fileName = FilenameUtils.getExtension(attachPath);//file extention
Comment

how to get file extention in java

//* manoj(tvmk)
String attachPath = (String) map.get("attachmentPath");//springboot
String fileName = FilenameUtils.getExtension(attachPath);//file extention
Comment

PREVIOUS NEXT
Code Example
Java :: how to import jframe in java 
Java :: how to hide label in bottom menu android studio 
Java :: how to import java.util 
Java :: install java centos 8 
Java :: decomposer chaine de caractère java 
Java :: java swing timer sleep 
Java :: java jdk java_home home ubuntu openjdk-8-jdk 
Java :: How to efficiently multiply two numbers represented as Strings, in Java? 
Java :: kotlin textview center text 
Java :: retrofit dependencies in android studio kotlin 
Java :: java doreturn void 
Java :: create jframe java 
Java :: what is final in java 
Java :: convert optional object to object java 
Java :: kotlin enable and disable parents view children 
Java :: change button text when clicked android studio 
Java :: package within another java 
Java :: junit 5 expected exception 
Java :: loop through a 2d array java 
Java :: how to iterate hashmap java 
Java :: specify decimal places java 
Java :: java foreach map 
Java :: print random from list java 
Java :: java get classname 
Java :: converting excel to csv in java 
Java :: How do I make a splash screen? 
Java :: java uuid 
Java :: java random usage 
Java :: android BottomSheetDialogFragment not opening fully on landscape 
Java :: java foreach arraylist 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =