Welcome to the Java-Practical repository! This repository is designed to help you master Java programming through a series of practical exercises. Each exercise is meticulously documented and runnable, guiding you through various Java development intricacies. Whether you're a beginner or an experienced developer, this collection offers valuable resources to enhance your understanding of Java.
To get started with the Java-Practical repository, follow these steps:
-
Clone the repository:
git clone https://github.com/SushilkumarDev/Java-Practical.git
-
Navigate to the project directory:
cd Java-Practical
-
Open the project in your preferred IDE (e.g., IntelliJ IDEA, Eclipse).
Each exercise is contained within its own Java file, named appropriately for easy identification.
To run an exercise, open the corresponding Java file in your IDE, compile it, and execute the program to see the output. Each exercise focuses on a specific Java concept, allowing you to practice and reinforce your skills.
Below is a list of all exercises included in this repository. Click on the file name to view the source code:
- HelloWorldAssessment.java: The first practical exercise of the course.
- KeywordsandExpressions.java: Demonstrates keywords and expressions in Java.
- PrimitiveTypes.java: Demonstrates primitive types.
- Ifthenstatements.java: Demonstrates if-then statements.
- Ifthenelsestatement.java: Demonstrates if-then-else statements.
- Switchstatement.java: Demonstrates switch statements.
- Forloop.java: Demonstrates for loop usage.
- WhileDowhilepart1.java: Solves while and do-while loop challenges.
- DoWhileLoopChallenge.java: Challenge using do-while loop.
- Codeformethods.java: Demonstrates method usage.
- Methodchallenge.java: Method challenge question and answer.
- Constructor.java: Example of constructors.
- CodeforStaticvsinstancevariable.java: Static vs instance variable example.
- CodeforStaticvsinstancemethod.java: Static vs instance method example.
- Automobile.java: Inheritance example for Automobile.
- CodeforComposition.java: Shows composition through university-related classes.
- CodeforEncapsulation.java: Encapsulation example with ATM functionality.
- Polymorphism.java: Demonstrates polymorphism using cricket match formats.
- Complex.java: Complex number operations.
- Cuboid.java: Calculates area and volume for a cuboid.
- Cylinder.java: Calculates area and volume for a cylinder.
- AreaCalculator.java: Area calculator program.
- Billburgers.java: Basic billing functionality for a burger shop.
- InputCalculator.java: Calculator that takes user input.
- MegaBytesConverter.java: Converts bytes to megabytes.
- WeightConverter.java: Converts weight units.
We welcome contributions! To contribute, please follow these steps:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/YourFeature
-
Make your changes and commit them:
git commit -m 'Add some feature'
-
Push to the branch:
git push origin feature/YourFeature
-
Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or issues, please contact SushilkumarDev.