A collection of Java lab programs organized by topic. Each Java source file begins with a short Question: comment describing the problem it addresses.
01_Basic_Java_Programs/— 12 programs02_Number_Based_Programs/— 8 programs03_Arrays_and_Matrices/— 2 programs04_Search_Sorting_and_Recursion/— 4 programs05_Classes_Objects_and_Constructors/— 7 programs06_Mathematical_and_Utility_Programs/— 4 programs07_Servlet_Program/— 1 servlet program and dependency/setup guide
- Basic input/output, operators, conditionals, and switch statements
- Number operations, GCD, factorial, prime numbers, palindrome, and Armstrong numbers
- Jagged arrays and matrix addition
- Linear search, bubble sort, decimal-to-binary conversion, and recursion
- Classes, objects, constructors, student and employee records
- Grade calculation, income tax, time conversion, and quadratic equations
- Jakarta Servlets and JSON responses using Gson
ExampleServlet.javarequires the Jakarta Servlet API, Gson, and a compatible servlet container. See07_Servlet_Program/DEPENDENCIES_AND_SETUP.md.