javalist.java
来自「java 完全探索的随书源码」· Java 代码 · 共 27 行
JAVA
27 行
import java.io.*;public class JavaList{ public static void main( String[] args ) { if ( args.length != 1 ) { System.out.println( "Usage: java RandomAccessExample <directory>" ); System.exit( 0 ); } String dir = args[0]; // Create a File instance for the current directory File currDir = new File( dir ); // Get a filtered list of the .java files in the current directory String[] javaFiles = currDir.list( new JavaFilter() ); // Print out the contents of the javaFiles array for (int i=0; i < javaFiles.length; i++) { System.out.println(javaFiles[i]); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?