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.
This repository is packed with practical Java exercises, each designed to enhance your understanding of Java programming concepts. Whether you're a beginner or looking to sharpen your skills, you'll find valuable resources here. Join us on this journey of discovery and improve your coding abilities.
To get started, 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).
- Explore Exercises: Each exercise is contained within its own Java file, named appropriately.
- Run Exercises: To run an exercise, open the corresponding Java file in your IDE, compile it, and execute the program to see the output.
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.
Feel free to customize this template according to your project's specific needs. The goal is to make the documentation as clear and helpful as possible for anyone who wants to use or contribute to your project.