<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    zhyiwww
    用平實的筆,記錄編程路上的點點滴滴………
    posts - 536,comments - 394,trackbacks - 0

    This example lists the files and subdirectories in a directory. To list all descendant files and subdirectories under a directory, see e33 Traversing the Files and Directories Under a Directory .

    				
    						File dir = new File("directoryName");
        
        String[] children = dir.list();
        if (children == null) {
            // Either dir does not exist or is not a directory
        } else {
            for (int i=0; i<children.length; i++) {
                // Get filename of file or directory
                String filename = children[i];
            }
        }
        
        // It is also possible to filter the list of returned files.
        // This example does not return any files that start with `.'.
        FilenameFilter filter = new FilenameFilter() {
            public boolean accept(File dir, String name) {
                return !name.startsWith(".");
            }
        };
        children = dir.list(filter);
        
        
        // The list of files can also be retrieved as File objects
        File[] files = dir.listFiles();
        
        // This filter only returns directories
        FileFilter fileFilter = new FileFilter() {
            public boolean accept(File file) {
                return file.isDirectory();
            }
        };
        files = dir.listFiles(fileFilter);
    				
    		


    |----------------------------------------------------------------------------------------|
                               版權聲明  版權所有 @zhyiwww
                引用請注明來源 http://m.tkk7.com/zhyiwww   
    |----------------------------------------------------------------------------------------|
    posted on 2006-06-13 11:45 zhyiwww 閱讀(296) 評論(0)  編輯  收藏 所屬分類: code demo -java
    主站蜘蛛池模板: 日韩毛片一区视频免费| 人人狠狠综合久久亚洲高清| 日韩精品无码永久免费网站| 亚洲激情电影在线| 中国黄色免费网站| 亚洲福利在线观看| heyzo亚洲精品日韩| 日韩精品无码区免费专区| 黄色免费网址大全| 精品久久亚洲中文无码| 亚洲欧洲第一a在线观看| 在线精品亚洲一区二区三区| 99久久免费观看| 亚洲免费在线观看| 最新亚洲人成无码网站| 亚洲日韩国产精品乱-久| 亚洲成a人片在线观看中文app| 亚洲国产精品高清久久久| 亚洲国产激情一区二区三区| 久久99精品国产免费观看| 国产黄片不卡免费| 麻豆91免费视频| 色一情一乱一伦一视频免费看| 亚洲AV噜噜一区二区三区| 亚洲AV第一成肉网| 男男gay做爽爽的视频免费| 亚洲AV日韩AV永久无码免下载| 中文字幕一精品亚洲无线一区| 亚洲AV中文无码乱人伦| 免费看男女下面日出水视频| 午夜精品在线免费观看| 成人a视频片在线观看免费| 成人免费午夜在线观看| 最近中文字幕mv免费高清电影| 99在线热播精品免费99热| 国产精品黄页免费高清在线观看| 一级特黄录像免费播放中文版| A毛片毛片看免费| 亚洲av永久中文无码精品综合| 久久精品亚洲一区二区| 亚洲AV无码精品色午夜在线观看|