A simple yet powerful Java CLI application that answers Java-related questions instantly.
It uses a structured knowledge.json file as its knowledge base and provides:
β
Instant Q&A
β
History of asked questions
β
Export to CSV/JSON
β
Expandable knowledge base (just add more questions!)
JavaHelperApp/
ββ pom.xml
ββ README.md
ββ src/
β ββ main/
β β ββ java/
β β β ββ com/javahelper/
β β β ββ Main.java
β β β ββ qa/
β β β β ββ QAEngine.java
β β β β ββ KnowledgeBase.java
β β β ββ utils/
β β β ββ ConsoleUtils.java
β β ββ resources/
β β ββ knowledge.json
ββ src/test/
ββ java/
ββ com/javahelper/
ββ QAEngineTest.java
ββ ConsoleUtilsTest.java
git clone https://github.com/yourusername/JavaHelperApp.git
cd JavaHelperAppmvn clean compile
3οΈβ£ Run the app
mvn exec:java -Dexec.mainClass="com.javahelper.Main"
- Once running, youβll see a menu:
=== Java Helper CLI ===
Menu:
1. Ask a Java Question
2. Show Q&A History
3. Export History CSV/JSON
0. Exit
Choose option: 1
Enter your question: What is Java?
Answer: Java is a high-level, object-oriented programming language developed by Sun Microsystems (now Oracle).