MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / accept

Method accept

day19/code/day19_File/src/cn/itcast_03/FileTest2.java:43–46  ·  view source on GitHub ↗
(File dir, String name)

Source from the content-addressed store, hash-verified

41 // public File[] listFiles(FilenameFilter filter)
42 File[] fileArray = folder.listFiles(new FilenameFilter() {
43 @Override
44 public boolean accept(File dir, String name) {
45 return new File(dir, name).isFile() && name.endsWith(".jpg");
46 }
47 });
48
49 for (File file : fileArray) {

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected