-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
good first issueGood for newcomersGood for newcomershacktoberfestThis is for HacktoberfestThis is for Hacktoberfesthacktoberfest-acceptedThis is for HacktoberfestThis is for Hacktoberfesthelp wantedExtra attention is neededExtra attention is needed
Description
Currently, the command strings like "dir", "date", "time", and "exit" are hardcoded directly in the switch statement in MyCMD.java. This use of "magic strings" can lead to typos and makes the code harder to maintain.
This issue proposes refactoring the code to define these command strings as private static final constants. This improves code readability, reduces the chance of errors, and makes it easier to manage command names in one central place
Please assign me this issue to submit this as a PR under the hacktoberfest, hacktoberfest2025, and hacktoberfest-accepted labels.
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershacktoberfestThis is for HacktoberfestThis is for Hacktoberfesthacktoberfest-acceptedThis is for HacktoberfestThis is for Hacktoberfesthelp wantedExtra attention is neededExtra attention is needed