본문 바로가기
Programming/Java

JAVA에서 파일 확장자 구하기

by Chan_찬 2016. 3. 22.
728x90
int pos = strFileName.lastIndexOf( "." );

String ext = strFileName.substring( pos + 1 );
728x90
728x90
Buy me a coffeeBuy me a coffee

댓글