A simple calculator application based on Java Swing.
A minimal Java tool that every programmer/coder loves for storing and organizing reusable code snippets.
- Store code snippets with title, language, code, and description
- Search across all snippet fields
- JSON file persistence (
snippets.json) - Both CLI and GUI interfaces
- Simple and minimal implementation
src/Snippet.java- Data modelsrc/SnippetManager.java- Core manager with JSON persistencesrc/SnippetCLI.java- Command-line interfacesrc/SnippetGUI.java- Graphical interface (Swing)src/SnippetLauncher.java- Interface choosersrc/AddExampleSnippets.java- Add example snippetssrc/TestSnippetManager.java- Test class
# If Java is installed:
javac src/*.java
# Run the launcher (choose interface):
java SnippetLauncher
# Or run directly:
java SnippetCLI # Command line interface
java SnippetGUI # Graphical interface
# Add example snippets:
java AddExampleSnippets./build_snippets.sh # Check build status
./run_snippet_cli.sh # Quick guideSee SNIPPET_MANAGER_README.md for complete documentation.