讨论/技术交流/求助|这个代码运行不出结果,是怎么回事?ʘʚʘ嘎?/
求助|这个代码运行不出结果,是怎么回事?ʘʚʘ嘎?

import java.io.*;

public class Example10_2 {

public static void main(String[] args) {
	// TODO Auto-generated method stub
	File dirFile = new File(".");
	FileAccept fileAccept = new FileAccept();
	fileAccept.setExtendName("java");
	String fileName[] = dirFile.list( fileAccept);
	for (String name : fileName) {
		System.out.println(name);			
	}
}

}
FileAccept.java
import java.io.*;

public class Example10_2 {

public static void main(String[] args) {
	// TODO Auto-generated method stub
	File dirFile = new File(".");
	FileAccept fileAccept = new FileAccept();
	fileAccept.setExtendName("java");
	String fileName[] = dirFile.list( fileAccept);
	for (String name : fileName) {
		System.out.println(name);			
	}
	
	

}

}

共 0 个回复
暂无回复