<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://www.tkk7.com/zhyiwww   
    |----------------------------------------------------------------------------------------|
    posted on 2006-06-13 11:45 zhyiwww 閱讀(296) 評論(0)  編輯  收藏 所屬分類: code demo -java
    主站蜘蛛池模板: 国产成人亚洲精品蜜芽影院| 亚洲色欲色欲www| 国产免费伦精品一区二区三区 | 亚洲综合久久综合激情久久| 久久久久久国产a免费观看不卡| 亚洲VA综合VA国产产VA中| 污污免费在线观看| 永久亚洲成a人片777777| 91福利免费网站在线观看| 国产亚洲综合成人91精品| 久久A级毛片免费观看| 亚洲国产电影在线观看| 青青视频观看免费99| 亚洲熟妇AV一区二区三区浪潮 | 三年片在线观看免费大全| 亚洲精品免费网站| 国产成人无码免费视频97| 曰批全过程免费视频观看免费软件| 亚洲无码黄色网址| 成人无码WWW免费视频| 亚洲小说图片视频| 永久免费无码网站在线观看| 午夜在线免费视频 | 在线免费观看伊人三级电影| 亚洲日本在线看片| 免费黄色大片网站| 一级做a爰片久久毛片免费看| 久久精品国产精品亚洲色婷婷| h视频在线免费看| 国产AV无码专区亚洲AV琪琪| 亚洲精品国产字幕久久不卡| 黄+色+性+人免费| 人妻巨大乳hd免费看| 久久精品国产亚洲av四虎| 男人的好看免费观看在线视频| 无码AV动漫精品一区二区免费| 亚洲av午夜福利精品一区| 成人免费无码大片a毛片软件| 一个人看的免费高清视频日本| 亚洲精品白色在线发布| 免费萌白酱国产一区二区|