Home >Backend Development >PHP Tutorial >A brief discussion on printing directory structure and core architecture design

A brief discussion on printing directory structure and core architecture design

巴扎黑
巴扎黑Original
2017-06-15 10:15:031087browse

The following example demonstrates using the file.getName() and file.listFiles() methods of the File class to print the directory structure: /* author by w3cschool.cc FileUtil.java */import java.io.File;import java.io.IOException;public class FileUtil { public static void main(String[] a)throws IOException{ showDir(1, new File(&qu

1. Java Example - Print directory structure

A brief discussion on printing directory structure and core architecture design

Introduction: The following example demonstrates using the file.getName() and file.listFiles() methods of the File class to print the directory structure:

[Related Q&A recommend】:

The above is the detailed content of A brief discussion on printing directory structure and core architecture design. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn