Object-Oriented Programming · Google · Medium
Design a miniature find command that operates on an in-memory file system. Users can add files—each with a name, size, and extension—and later query any directory (including its subdirectories) using filters based on size, extension, or name prefix. You are provided with an abstract Filter class: java abstract class Filter { // Returns true if the given file satisfies this filter's criterion abstract boolean apply(File file); } Your task is to implement three concrete filter…
Checking your access…