Imported from vijaybarhate/Anudip (
AGENTS.md). Install upstream withnpx skills add vijaybarhate/Anudip. Copyright stays with the author.
AGENTS.md — Project Context for Future Agents
Project Overview
Anudip Java practice lab — a collection of Java programs covering Core Java, Collections (ArrayList, LinkedList, HashSet, HashMap), Arrays, and JDBC. Each lab topic has a corresponding .docx document in docs/ with the problem statement, code, and output.
Repository Structure
D:\Projects\Anudip/
├── core/ — Core Java: arrays, bubble sort, min/max, average, reverse
├── arrays/ — Array lab assignments (lab_ANP-D6592_Array)
├── collections/ — ArrayList & LinkedList programs (lab_6592_ArraylistnLinkedlist)
├── OOps/ — OOPs programs (encapsulation, student management system)
├── jdbc/ — JDBC CRUD programs (lab_ANP-D6592_JDBC_CRUD)
├── docs/ — Lab assignment .docx files with problem descriptions + code + output
├── assets/ — Screenshots and flowcharts
├── html/ — HTML/CSS practice files
├── AGENTS.md — This file: session history and context for agents
├── README.md — Project documentation with table of programs
├── notes.md — Collection Framework, String, and OOPs reference notes
│
├── Hash_Map.java — Basic HashMap demo (employee ID → name)
├── Hash_Set.java — Basic HashSet demo (student names, uniqueness)
├── Linked_List.java — Basic LinkedList demo (add, addFirst, addLast, get, remove)
├── Product.java — Model class for ProductInventory (id, name, price, qty)
├── ProductInventory.java — HashMap lab: product CRUD with menu (lab_ANP-D6592_HashSet)
├── Student.java — Model class for EventRegistration (id, name)
├── EventRegistration.java — HashSet lab: college event registration with menu
├── Reverse_str.java — String reversal program
├── Palindrome.java — Palindrome checker
├── EqStr.java — String comparison & method demo
├── DuplicateChars.java — Duplicate character finder
├── DemoStr1.java — String pool vs heap demo
└── CompareStrings.java — String comparison (3 methods)
Session History
Session 1 — HashSet Lab Document & Programs (2026-06-30)
What was done:
-
Created
lab_ANP-D6592_HashSet.docxwith:- Q1: Product Inventory Management using
HashMap<Integer, Product>— menu-driven CRUD - Q2: College Event Registration using
HashSet<Student>— with duplicate prevention - Both questions have CODE and OUTPUT sections in tables (matching format of other lab docx files)
- Q1: Product Inventory Management using
-
Created source files:
Product.java— model class withequals()/hashCode()based onidProductInventory.java— menu-driven HashMap program with Add/Display/Search/Update/Delete
-
Updated
EventRegistration.javato useHashSet<Student>with 9 pre-loaded students and full menu (Register/View/Check/Cancel/Count/Exit) -
Added comprehensive JavaDoc-style comments to ALL
.javafiles in the project -
Updated
notes.md— added Map hierarchy, HashSet/HashMap documentation with method tables and custom object guidelines -
Created
AGENTS.md— this file, for session history and project context
Session 2 — String Programs, OOPs Programs, & Documentation Update (2026-07-13)
What was done:
-
Added 6 new String programs:
Reverse_str.java— string reversal from user inputPalindrome.java— palindrome checker with space/case normalizationEqStr.java—==vs.equals()demo with charAt, toUpperCase, toLowerCase, contains, replaceDuplicateChars.java— duplicate character detection usingHashMap<Character, Integer>DemoStr1.java— string pool vs heap memory reference comparisonCompareStrings.java— comparison via equals(), equalsIgnoreCase(), compareTo()
-
Added OOPs programs directory (
OOps/) with 5 programs:Student.java— model class with id, name, course, marksStudent_management_system.java— POJO with getters/setters/toStringStudentman.java— full student management system using ArrayList, HashMap, HashSet, Queue, JDBCencapsulation.java— encapsulation demo with employee objectemployee.java— employee model class with getters/setters/toString
-
Updated
notes.md— added String API section (pool vs heap, == vs equals(), common methods, StringBuilder) and OOPs Concepts section (class, object, encapsulation, constructor, this, toString) -
Updated
README.md— added String Programs section, OOPs Programs section, Linked_List.java entry, and updated Folder Structure -
Updated
AGENTS.md— this session entry
Session 3 — Classpath Configuration & Compilation Fixes (2026-07-14)
What was done:
- Diagnosed package mismatch compilation errors where IDE expected default package
""for files with packageOOps.DAOorOOps.Github.BankingSystem. - Updated
.classpathto define the project root""as the primary source folder (excluding specific lab dirsarrays/,collections/,core/,jdbc/,bin/, etc.) so that all files declaringpackage OOps...resolve correctly relative to the project root. - Configured
arrays/,collections/,core/, andjdbc/as separate source folders in.classpathso their Java files (which use the default package) compile without package mismatch errors. - Compiled and verified files in both packaged paths (e.g.
BankingSystem.java,StudentMain.java) and default-packaged paths (e.g.ShoppingCart.java) to ensure zero errors. - Identified and removed untracked duplicate Java files from the project root directory (e.g.
ShoppingCart.java,Average.java, etc.) that were causing "type already defined" conflicts with their counterparts incollections/,core/, andjdbc/.
Coding Conventions
- Class names: PascalCase (e.g.,
ProductInventory) - File names: match class name exactly
- Package: default package (no package declarations)
- Comments: multi-line
//comments explaining intent at class and method level, inline//for tricky logic - Imports: specific imports preferred (e.g.,
import java.util.Scanner) butimport java.util.*is also used - Input:
ScannerwithSystem.in - Menu pattern:
do-whileloop withswitchstatement
Lab Document Format
Each topic has a .docx in docs/ with naming convention:
lab_<course-code>_<topic>.docx
Document structure:
- Title (centered, bold, 14pt)
- Question number and description (paragraphs)
- "CODE:" label
- Code in a 1×1 table
- "OUTPUT:" label
- Sample output in a 1×1 table
- Separator line (─ × 50)
- Repeat for Q2...
Verification
- Re-compile after any edit:
javac FileName.javain project root - No errors should appear on compilation
- All
.javafiles have been compiled successfully after the last edits