Skip to content

Darius301105/Java-Labs

Repository files navigation

Java-Labs

This repository contains my Java laboratory work, organized by lab folders and packages.

Labs included

Lab3 - Vehicle Management System

Topics:

  • abstract classes
  • inheritance
  • polymorphism
  • encapsulation
  • garage management

Main classes:

  • Vehicle
  • Car
  • Motorcycle
  • Truck
  • Garage

Lab4 - Bank Account System

Topics:

  • OOP
  • inheritance
  • custom exceptions
  • deposit / withdraw logic

Main classes:

  • BankAccount
  • SavingsAccount
  • InvalidAmountException
  • InsufficientFundsException
  • BankApp

Lab5 - Collections

Topics:

  • List
  • Set
  • Map
  • sorting
  • duplicates removal
  • student management

Tasks implemented:

  • Task 1: Student names with ArrayList
  • Task 2: Sum and average of integers
  • Task 3: Reverse a list
  • Task 4: Unique words counter
  • Task 5: Word frequency counter
  • Task 6: Phone book
  • Task 7: Students Management System
  • Task 8: Sort Students
  • Task 9: Remove Duplicates
  • Task 10: LRU Cache (simplified)
  • Task 11: Merge Two Maps

Lab6 - Generics

Topics:

  • generic classes
  • generic methods
  • bounded types
  • wildcards
  • generic stack

Tasks implemented:

  • Task 1: Generic class with private field of type T, constructor, getter and setter
  • Task 2: Generic method printTwice(T value)
  • Task 3: Bounded generic method max(T a, T b) using Comparable
  • Task 4: Method count for generic lists
  • Task 5: Copy elements between generic lists using wildcards
  • Task 6: Generic Stack implementation with push, pop, peek, isEmpty

Lab7 - Movie Database

Topics:

  • Maven
  • JDBC
  • H2 in-memory database
  • CRUD operations
  • relational databases

Tasks implemented:

  • Create movies table
  • Insert movies into database
  • Read all movies from database
  • Update movie title by id
  • Delete movie by id

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages