Why I couldn't print any word from these code? Eclipse didn't show any thing on Console field.
package test;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.nio.file.PathMatcher;
import java.nio.file.Paths;
public class Test2 {
public static void main(String[] args) {
PathMatcher matcher =
FileSystems.getDefault().getPathMatcher("glob:*.{java,class}");
Path filename = Paths.get("C:\\Users\\user\\eclipse-workspace\\test\\bin\\test");
if (matcher.matches(filename)) {
System.out.println(filename);
}
}
}