Back to problems

File Management System

Object-Oriented Programming · Oracle · Medium

Requirements You receive starter data in the form of a HashMap >, where each key is a folder name and its value contains the files stored in that folder. Implement these operations: checkIfFolderExists(name) → boolean createFolder(name) — add a folder that is not already present; define what should happen when the name is already registered. createFile(folder, filename) — place a file in the specified folder. Decide whether a missing folder causes an error or is created…

Checking your access…