๐ Java Programs Collection
A comprehensive collection of Java programs demonstrating core and advanced concepts including Collections, Database (JDBC), Multithreading, and Swing GUI.
๐ Features
- ๐ Collections Framework
- ArrayList, LinkedList, HashMap, TreeMap
- CRUD operations (Add, Remove, Search)
- Iterator usage
- ๐๏ธ Database Connectivity (JDBC)
- PostgreSQL / MySQL integration
- Insert, Update, Delete, Fetch records
- PreparedStatement usage
- ๐งต Multithreading
- Thread creation using Thread class & Runnable interface
- Synchronization
- Thread lifecycle
- ๐ฅ๏ธ Swing GUI
- User-friendly interfaces
- Forms, Buttons, Labels, TextFields
- Event handling (ActionListener)
๐ ๏ธ Technologies Used
- Java (JDK 8+)
- JDBC
- Swing
- PostgreSQL
-
VS Code
๐ Project Structure
Java-Programs-Collection/
โโโ collection/
โโโ database/
โโโ threads/
โ๏ธ How to Run
1๏ธโฃ Clone the repository
git clone https://github.com/your-username/your-repo-name.git
2๏ธโฃ Compile Java files
javac -d bin src/yourpackage/*.java
3๏ธโฃ Run the program
java -cp bin yourpackage.ClassName
๐งช Database Setup
- Install PostgreSQL
- Create database:
- Update your DB credentials in code:
String url = "jdbc:postgresql://localhost:5432/javadb";
String user = "your_username";
String password = "your_password";
๐ค Contributing
Feel free to fork this repository and add more Java programs!
๐ License
This project is open-source and free to use.
๐ฉโ๐ป Author
Payal kor
TY BCS Student | Aspiring Full Stack Developer ๐