java判断是不是文件
答案:3 悬赏:0
解决时间 2021-03-07 18:36
- 提问者网友:美人性情
- 2021-03-07 04:16
java判断是不是文件
最佳答案
- 二级知识专家网友:梦中风几里
- 2021-03-07 04:23
if(file.isFile())//判断是否是一个标准文件
if(file.isDirectory())//判断是否是文件夹
if(file.isHidden())//判断是否是隐藏文件
if(file.isDirectory())//判断是否是文件夹
if(file.isHidden())//判断是否是隐藏文件
全部回答
- 1楼网友:从此江山别
- 2021-03-07 07:29
booleanisDirectory()Tests whether the file denoted by this abstract pathname is a directory.
booleanisFile()Tests whether the file denoted by this abstract pathname is a normal file.
booleanisFile()Tests whether the file denoted by this abstract pathname is a normal file.
- 2楼网友:罪歌
- 2021-03-07 05:54
file.isDirectory()
file.isFile()
file.isFile()
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯