π‘ The Problem
In diploma and degree courses (especially in India), students often collect notes from seniors, teachers, and online sources. These notes are usually in PDF format and filled with tons of questions.
But how do you:
Compare 5β6 different PDFs?
Find out which questions are repeating?
Save time while preparing for exams?
Simple answer: you build an app π
π οΈ The Tech Stack
I used Java as my main language because:
It has powerful libraries for working with files.
Itβs cross-platform.
I wanted to improve my Java skills.
π§ Libraries used:
PDFBox β to read and extract text from PDFs.
HashMap β to track frequency of questions.
Some basic file handling and string comparison.
π¨βπ» How the App Works
Input PDFs: The user selects multiple PDF files.
Extract Questions: The app reads each PDF and pulls out lines that look like questions (ending with ?).
Compare Questions: It uses a map to count how many times each question appears across all PDFs.
Output: A list of common questions, i.e., those that appeared more than once.
π§ͺ Sample Code Snippet
Hereβs a simplified version of the question-detection logic:
java
Copy
Edit
if (line.trim().endsWith("?")) {
String question = line.trim();
questionMap.put(question, questionMap.getOrDefault(question, 0) + 1);
}
Pretty simple, right? The real challenge was text extraction and cleaning, especially because PDF formatting can be weird.
π¦ Features I Plan to Add
GUI using JavaFX or Swing.
Export common questions to a new PDF.
Allow filtering by subject or keyword.
π Why This Project Helped Me
I learned a lot about file parsing and text processing.
Solved a real-world problem for myself and my classmates.
Felt proud to build something helpful, even as a student.
π§ Final Thoughts
You donβt need to build huge apps to make an impact. Even small tools that solve your personal problems can be super valuable.
If youβre a student who codes, look around β thereβs probably something in your daily life you can automate or improve with programming.
π¬ Letβs Connect!
If you're working on a similar project, or want help building your own student tools, Iβd love to chat! Drop a comment or DM. π
Top comments (0)