Java获取文件的类型(扩展名)
来源:互联网 发布:everyman睡眠计划知乎 编辑:程序博客网 时间:2024/05/13 07:22
File file=new File("E:\\aa.jpg");String fileName=file.getName();String fileTyle=fileName.substring(fileName.lastIndexOf("."),fileName.length());System.out.println(fileTyle);
程序运行效果图:
2 0
- Java获取文件的类型(扩展名)
- java 获取文件扩展名
- java获取文件扩展名
- 获取文件的扩展名
- Qt之QFileIconProvider(根据扩展名获取文件图标、类型)
- Qt之QFileIconProvider(根据扩展名获取文件图标、类型)
- 【笔记】java获取文件扩展名
- C++根据扩展名获取文件图标、类型
- 获取指定扩展名的文件
- PHP获取文件的扩展名
- 直接获取文件的扩展名
- php 获取文件的扩展名
- 如何获取文件的扩展名
- JAVA操作——获取文件扩展名,去掉文件扩展名
- JAVA操作——获取文件扩展名,去掉文件扩展名
- JAVA操作——获取文件扩展名,去掉文件扩展名
- Java操作——获取文件扩展名,去掉文件扩展名
- Java操作——获取文件扩展名,去掉文件扩展名
- matlab读取/播放视频的函数
- 求并联电阻
- Caused by:java.lang.NoClassDefFoundError:org/aoplliance/intercept/MethodInterceptor的解决
- js中childNodes与firstChild、lastChild
- C++成员函数重载、覆盖和隐藏的区别
- Java获取文件的类型(扩展名)
- C++ AMP 介绍(二)
- android避免AlarmManager被kill
- 求两数的正差值
- Linux SWAP 交换分区配置说明
- Servlet 入门理解
- 用C++在Windows上开发SNMP扩展代理(SNMP extension agent) DLL
- Centos安装Unrar以及使用方法
- Error: org.apache.hadoop.hdfs.BlockMissingException: Could not obtain block: BP-965200530-172.21.3.1