<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kapil Bhabad</title>
    <description>The latest articles on DEV Community by Kapil Bhabad (@_kapil_bhabad_18).</description>
    <link>https://dev.to/_kapil_bhabad_18</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3088886%2F4512a3d9-fc99-4ad5-a66a-da2fbc098bba.png</url>
      <title>DEV Community: Kapil Bhabad</title>
      <link>https://dev.to/_kapil_bhabad_18</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_kapil_bhabad_18"/>
    <language>en</language>
    <item>
      <title>How I Built a Java App to Find Common Questions from PDFs (Perfect for Students!)</title>
      <dc:creator>Kapil Bhabad</dc:creator>
      <pubDate>Fri, 25 Apr 2025 11:41:10 +0000</pubDate>
      <link>https://dev.to/_kapil_bhabad_18/how-i-built-a-java-app-to-find-common-questions-from-pdfs-perfect-for-students-1fb3</link>
      <guid>https://dev.to/_kapil_bhabad_18/how-i-built-a-java-app-to-find-common-questions-from-pdfs-perfect-for-students-1fb3</guid>
      <description>&lt;p&gt;💡 The Problem&lt;br&gt;
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.&lt;/p&gt;

&lt;p&gt;But how do you:&lt;/p&gt;

&lt;p&gt;Compare 5–6 different PDFs?&lt;/p&gt;

&lt;p&gt;Find out which questions are repeating?&lt;/p&gt;

&lt;p&gt;Save time while preparing for exams?&lt;/p&gt;

&lt;p&gt;Simple answer: you build an app 😄&lt;/p&gt;

&lt;p&gt;🛠️ The Tech Stack&lt;br&gt;
I used Java as my main language because:&lt;/p&gt;

&lt;p&gt;It has powerful libraries for working with files.&lt;/p&gt;

&lt;p&gt;It’s cross-platform.&lt;/p&gt;

&lt;p&gt;I wanted to improve my Java skills.&lt;/p&gt;

&lt;p&gt;🔧 Libraries used:&lt;br&gt;
PDFBox – to read and extract text from PDFs.&lt;/p&gt;

&lt;p&gt;HashMap – to track frequency of questions.&lt;/p&gt;

&lt;p&gt;Some basic file handling and string comparison.&lt;/p&gt;

&lt;p&gt;👨‍💻 How the App Works&lt;br&gt;
Input PDFs: The user selects multiple PDF files.&lt;/p&gt;

&lt;p&gt;Extract Questions: The app reads each PDF and pulls out lines that look like questions (ending with ?).&lt;/p&gt;

&lt;p&gt;Compare Questions: It uses a map to count how many times each question appears across all PDFs.&lt;/p&gt;

&lt;p&gt;Output: A list of common questions, i.e., those that appeared more than once.&lt;/p&gt;

&lt;p&gt;🧪 Sample Code Snippet&lt;br&gt;
Here’s a simplified version of the question-detection logic:&lt;/p&gt;

&lt;p&gt;java&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
if (line.trim().endsWith("?")) {&lt;br&gt;
    String question = line.trim();&lt;br&gt;
    questionMap.put(question, questionMap.getOrDefault(question, 0) + 1);&lt;br&gt;
}&lt;br&gt;
Pretty simple, right? The real challenge was text extraction and cleaning, especially because PDF formatting can be weird.&lt;/p&gt;

&lt;p&gt;📦 Features I Plan to Add&lt;br&gt;
GUI using JavaFX or Swing.&lt;/p&gt;

&lt;p&gt;Export common questions to a new PDF.&lt;/p&gt;

&lt;p&gt;Allow filtering by subject or keyword.&lt;/p&gt;

&lt;p&gt;🚀 Why This Project Helped Me&lt;br&gt;
I learned a lot about file parsing and text processing.&lt;/p&gt;

&lt;p&gt;Solved a real-world problem for myself and my classmates.&lt;/p&gt;

&lt;p&gt;Felt proud to build something helpful, even as a student.&lt;/p&gt;

&lt;p&gt;🧠 Final Thoughts&lt;br&gt;
You don’t need to build huge apps to make an impact. Even small tools that solve your personal problems can be super valuable.&lt;/p&gt;

&lt;p&gt;If you’re a student who codes, look around — there’s probably something in your daily life you can automate or improve with programming.&lt;/p&gt;

&lt;p&gt;💬 Let’s Connect!&lt;br&gt;
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. 🚀&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
