Features
- Shows a random quote from a local file (quotes.txt)
- Option to fetch a quote from the internet using the Quotable API (https://api.quotable.io)
- Beginner-friendly Java example using:
- Random
- File I/O
- HttpURLConnection
🏗️ How to Run
- Clone this repository or download the files.
- Make sure quotes.txt is in the same directory as MotivationalQuote.java.
- Compile and run: javac MotivationalQuote.java java MotivationalQuote
- Choose an option:
- 1 → Show a random local quote
- 2 → Fetch from API
Example Output
Choose an option:
- Show random local quote
- Fetch quote from API
Enter choice: 1
💬 Random Quote: Dream big. Start small. Act now.
📚 Tech Used
• Java
• File I/O
• Random class
• Basic API handling (HttpURLConnection)