Welcome to the most complete snippet library for Java and Python lab assignments!
🛠️ Usage Instructions
This extension provides snippets for 10 common lab assignments. You can trigger them using the following prefixes:
☕ Java Snippets
- Prefix:
j@lab<number>orbeo_lab<number> - Example: Typing
j@lab1orbeo_lab1will insert the JDBC assignment.
🐍 Python Snippets
- Prefix:
p@lab<number> - Example: Typing
p@lab1will insert the SQLite/Database assignment.
📚 Lab Details
| Lab | Name | Description |
|---|---|---|
| Lab 1 | JDBC / SQLite Operations | Database connection, table creation, insertion, and record retrieval. |
| Lab 2 | Simple Calculator | GUI-based calculator using Swing (Java) or Tkinter (Python) with Grid Layout. |
| Lab 3 | Parallel File Search | Recursive file searching using ExecutorService (Java) or ThreadPool (Python). |
| Lab 4 | Advanced Features | Functional programming: Lambda, Optional, Streams (Java) / Map, Filter, Reduce (Python). |
| Lab 5 | Date/Time | Calculating the difference in days between two dates using modern date APIs. |
| Lab 6 | Group & Sort | Function to group files by owner and sort file names alphabetically. |
| Lab 7 | Quadratic Solver | Class with a method to find real and complex roots of a quadratic equation. |
| Lab 8 | OOP Principles | Demonstrates Inheritance, Method Overloading, and Method Overriding. |
| Lab 9 | Pattern Printing | Algorithm to print a symmetric star pyramid pattern. |
| Lab 10 | Multitasking & DB | Integrated program for Exception Handling, Multithreading, and DB Operations. |
⚙️ How to Refresh
If you modify the .java or .py source files, run the generator script to update the snippets:
python gen_extension.py
📦 Publishing
To package the extension into a .vsix file:
- Install
vsce:npm install -g @vscode/vsce - Run:
vsce package