All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
Which of the following is true about the PathMatcher returned by FileSystem.getPathMatcher()?
Answer:
It can work with regular expressions as well as glob patterns.
Technically, the PathMatcher returned by FileSystem.getPathMatcher() can only work with one or the other (whichever one was passed to the static factory method).
That is true but from that perspective it cannot work with any pattern except the one that was passed to the getPathMatcher method. So the statement wouldn't make sense at all.
I have updated it to "It can match Paths using a regular expression or a glob pattern depending on how it is acquired".