Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Java Programming Assignment

Welcome to the Java Programming Assignment repository! This repo is a collection of beginner to advanced Java programs, designed to help learners strengthen their understanding of core and modern Java concepts.

Table of Contents


Beginner Programs

  • CheckPallindromeNo.java
    Checks whether a given number is a palindrome or not.
    Demonstrates basic logic and loop operations in Java.

  • even_Checker.java
    Determines if a number is even or odd.
    Useful for understanding conditional statements.

  • factorial.java
    Calculates the factorial of a given number.
    Introduces recursion and iterative approaches.

  • Fibbonaci_series.java
    Prints the Fibonacci series up to a limit.
    Shows sequence generation with loops.

  • FindLargestOf3No.java
    Finds the largest among three numbers.
    Demonstrates multi-branch conditional logic.

  • LeapYearChecker.java
    Checks if a year is a leap year.
    Uses conditional logic with modulus operator.

  • MenuDriven.java
    Implements a menu-driven program for multiple operations.
    Useful for practicing switch-case and user input handling.

  • Number_Reverser.java
    Reverses the digits of a number.
    Good for learning number manipulation and loops.

  • PrimeNumberChecker.java
    Checks if a number is prime.
    Demonstrates nested loops and efficient checking.

  • SimpleCalculator.java
    A basic calculator for arithmetic operations.
    Shows function handling and user interaction.

  • SimpleIntrestCalculator.java
    Calculates simple interest based on input values.
    Reinforces basic arithmetic and formula application.

  • sumNumbers.java
    Sums a series of numbers entered by the user.
    Demonstrates accumulation patterns in loops.

  • vowel_consonant_checker.java
    Determines if a character is a vowel or consonant.
    Uses character comparison and conditionals.

Intermediate Programs

  • ArrayOfObjectsDemo.java
    Demonstrates creating and using arrays of objects.
    Useful for understanding object-oriented arrays.

  • bankAccountSimulation.java
    Simulates basic bank account operations.
    Introduces class design and method usage.

  • CountWordOfString.java
    Counts the number of words in a string.
    Practices string manipulation and iteration.

  • DateValidator.java
    Checks if a given date is valid.
    Uses logic for date and calendar validation.

  • fileWritingAndReading.java
    Demonstrates writing to and reading from files.
    Practices Java I/O operations.

  • LibraryBookTracker.java
    Manages a simple library book tracking system.
    Reinforces object management and collections.

  • LinerSearchinArray.java
    Performs linear search in an array.
    Introduces search algorithms and array traversal.

  • MiniQuizApp.java
    Implements a simple quiz application.
    Practices user input and score calculation.

  • SimpleLoginSystem.java
    Basic login system with username and password.
    Demonstrates user authentication logic.

  • simpleToDoListWithArrayList.java
    Manages a to-do list using ArrayList.
    Introduces dynamic collections in Java.

  • sortanIntegerArray.java
    Sorts an array of integers.
    Demonstrates sorting algorithms and loops.

  • Student.java
    Represents student details using a class.
    Shows encapsulation and object creation.

  • StudentGradeAverage.java
    Calculates the average grade of students.
    Practices class usage and array manipulation.

  • TempratureCONverterClass.java
    Converts temperature between units.
    Reinforces method design and user input.

  • text.txt
    Sample text file for file I/O operations.
    Used for demonstrating reading and writing.

  • UsingThisAndStatic.java
    Demonstrates use of 'this' keyword and static members.
    Explains class-level and instance-level functionality.

Advanced Programs

  • AbstractClassForEmployee.java
    Demonstrates use of abstract classes for employee objects.
    Useful for understanding abstraction in OOP.

  • CSVFileReader.java
    Reads and processes CSV files in Java.
    Practices file parsing and string operations.

  • CustomExceptionHandellingForInvalidAge.java
    Handles custom exceptions for invalid age input.
    Introduces exception handling and custom exceptions.

  • EnumForDays.java
    Uses enum to represent days of the week.
    Shows type safety and switch-case with enums.

  • exceptionHandalling.java
    Demonstrates basic exception handling mechanisms.
    Practices try-catch blocks and error management.

  • InheritaneForvehicalClass.java
    Shows inheritance with vehicle classes.
    Reinforces OOP concepts and code reuse.

  • InterfaceShape.java
    Demonstrates interfaces with shape objects.
    Useful for understanding polymorphism and contracts.

  • LambdaExpressionBasics.java
    Introduces lambda expressions in Java.
    Shows concise syntax for functional programming.

  • LibrarySystem.java
    Implements a library management system.
    Practices advanced object-oriented design.

  • LogSystem.java
    Simple logging system for application events.
    Reinforces file I/O and logging concepts.

  • MiniATM.java
    Simulates a mini ATM system.
    Demonstrates transaction logic and user interface.

  • MiniInventoryApp.java
    Basic inventory management application.
    Practices collection handling and class design.

  • OOPSCalculator.java
    Calculator program using OOP principles.
    Shows encapsulation and method organization.

  • SerializeAndDeserializeObject.java
    Demonstrates object serialization and deserialization.
    Practices saving and restoring object state.

  • StreamsAPIExample.java
    Example of Java Streams API usage.
    Introduces functional operations on collections.


Getting Started

  1. Clone the repository:
    git clone https://github.com/Pratham-Dev3011/Java-Programming-Assignment.git
  2. Navigate to the project directory:
    cd Java-Programming-Assignment
  3. Open the files in your favorite Java IDE (e.g., IntelliJ IDEA, Eclipse, VS Code).

Requirements

  • Java Development Kit (JDK) 8 or above
  • A Java IDE or text editor

How to Run

  1. Compile the Java files:
    javac src/<folder>/<filename>.java
  2. Run the program:
    java src.<folder>.<filename>
    Replace <folder> and <filename> with the respective directory and file names.

Contributing

Contributions are welcome! If you have suggestions for new programs, improvements, or bug fixes, feel free to fork the repository and submit a pull request.

  1. Fork the repo
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License. See the LICENSE file for details.


Happy Coding! 🚀

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages