You say you want to use files that start with "0" "1" or "2" but you only accept files that start with "0". The code is doing exactly what you told it to do.
public boolean accept (File dir, String name) {
return name.startsWith("0");
}
You need to modify your
accept code to handle all three cases
<pre>public boolean accept (File dir, String name) {
return name.startsWith("0") || name.startsWith("1") || name.startsWith("2");
}
As for copying, try the
java.nio.file.Files.copy function.