How morepancakestacks/java-notes-diary works
NotesDump is a console-based Java notes manager. The user selects actions in the menu; Main dispatches them to Diary, which handles timestamped add, list, edit, delete, insert, and exit behavior. Diary delegates file creation and line-level reads and writes to FileHandler, using the plain-text notes file for persistence. The README documents these capabilities; the shown source supports the menu dispatch and storage calls. The repository is small, so components share paths where one class owns multiple domain actions.
Main entry points: Main.java Menu and dispatch · Diary.java Note operations · FileHandler.java File access · notes.txt Notes text file
Components 5
Console entry
- Menu and dispatch
src/diaryapp/Main.java
Note operations
- Note operations
src/diaryapp/Diary.java
File storage
- File access
src/diaryapp/FileHandler.java - Notes text file
src/data/notes.txt
Other components
- Terminal user
Connections 11
- Terminal user → Menu and dispatch: chooses action
src/diaryapp/Main.java - Menu and dispatch → Note operations: dispatches add
src/diaryapp/Main.java - Menu and dispatch → Note operations: dispatches view
src/diaryapp/Main.java - Menu and dispatch → Note operations: dispatches edit
src/diaryapp/Main.java - Menu and dispatch → Note operations: dispatches delete
src/diaryapp/Main.java - Menu and dispatch → Note operations: dispatches insert
src/diaryapp/Main.java - Menu and dispatch → Note operations: dispatches exit
src/diaryapp/Main.java - Menu and dispatch → Note operations: checks file
src/diaryapp/Main.java - Note operations → File access: requests file operations
src/diaryapp/Diary.java - File access → Notes text file: creates, appends, writes
src/diaryapp/FileHandler.java - Notes text file → File access: provides lines
src/diaryapp/FileHandler.java