An open API service indexing awesome lists of open source software.

https://github.com/narendracodehub/100-java-programs

Welcome to the 100-JAVA-Programs repository! This collection is designed to help you improve your understanding of Java and enhance your problem-solving skills through practical coding exercises.
https://github.com/narendracodehub/100-java-programs

Last synced: 6 months ago
JSON representation

Welcome to the 100-JAVA-Programs repository! This collection is designed to help you improve your understanding of Java and enhance your problem-solving skills through practical coding exercises.

Awesome Lists containing this project

README

          

# 100-JAVA-Programs

Welcome to the **100-JAVA-Programs** repository! This collection is designed to help you improve your understanding of Java and enhance your problem-solving skills through practical coding exercises.

## What's Inside

- **100 Java Programs**: A curated set of programs covering topics from basic syntax to algorithms, data structures, and object-oriented programming.
- **Logic Building**: Each program is crafted to challenge and develop logical thinking, crucial for writing efficient and effective code.
- **Comprehensive Explanations**: Each program is paired with explanations to help you grasp the concepts and reinforce your learning.
- **Real-World Applications**: Practical programs with direct applications in Java automation and problem-solving.

---
## How to Use This Repository

1. **Clone the Repository**:
Clone this repository to your local machine using the following command:
```bash
git clone https://github.com/yourusername/100-JAVA-Programs.git

2. **Explore the Programs**: Browse through the programs in the repository. Each program is designed to target specific Java concepts and logic-building exercises.

3.**Practice and Modify**: Run the programs and experiment by modifying the code to observe the effects of your changes. This hands-on approach will solidify your understanding.

4. **Contribute**: Found an interesting program or improvement? Feel free to fork the repository, make changes, and submit a pull request!

Here's the updated **## File Structure** section for your repository, reflecting the file directory structure with all programs located in the `src` folder:

---

## File Structure

Below is the list of programs included in this repository, organized under the `src` directory:

1. **Simple Java Program**
File: [src/HelloWorld.java](src/HelloWorld.java)
Description: Prints "Hello, World!" to the console.

2. **Print Integer in Java**
File: [src/Integers.java](src/Integers.java)
Description: Prints an integer to the console.

3. **Command Line Argument**
File: [src/Arguments.java](src/Arguments.java)
Description: Demonstrates handling and printing of command-line arguments.

4. **Get Input Using Scanner**
File: [src/GetInputFromUser.java](src/GetInputFromUser.java)
Description: Accepts user input using the `Scanner` class.

5. **Convert Fahrenheit to Celsius**
File: [src/FahrenheitToCelsius.java](src/FahrenheitToCelsius.java)
Description: Converts a temperature from Fahrenheit to Celsius.

6. **Swap Two Numbers Using a Third Variable**
File: [src/SwapNumbers.java](src/SwapNumbers.java)
Description: Swaps two numbers with a temporary variable.

7. **Swap Two Numbers Without a Third Variable**
File: [src/SwapNumbersWithout.java](src/SwapNumbersWithout.java)
Description: Swaps two numbers without using any additional variable.

8. **Add Two Numbers**
File: [src/AddNumbers.java](src/AddNumbers.java)
Description: Adds two numbers and displays the result.

9. **Find the Largest Number**
File: [src/LargestOfThreeNumbers.java](src/LargestOfThreeNumbers.java)
Description: Determines the largest number among three inputs.

10. **If-Else Clause in Java**
File: [src/IfElse.java](src/IfElse.java)
Description: Demonstrates the `if-else` clause.

11. **Check Odd or Even Number**
File: [src/OddOrEven.java](src/OddOrEven.java)
Description: Checks if a number is odd or even.

12. **Find Factorial of a Number**
File: [src/Factorial.java](src/Factorial.java)
Description: Calculates the factorial of a given number.

13. **Compare Two Strings**
File: [src/CompareString.java](src/CompareString.java)
Description: Compares two strings lexicographically.

14. **Simple For Loop Program**
File: [src/ForLoop.java](src/ForLoop.java)
Description: Demonstrates a `for` loop to print a range of numbers.

15. **Simple While Loop Program**

File: [src/WhileLoop.java](src/WhileLoop.java)
Description: Demonstrates a `while` loop simple program with numbers.

16. **Print Reverse Number**

File: [src/ReverseNumber.java](src/ReverseNumber.java)
Description: Reverses a valid positive integer and handles single-digit numbers and leading zeros.

---

## Who This Repository Is For
**Beginners**: If you're new to Java, this repository is a great way to get hands-on experience with a wide range of Java concepts.

**Intermediate** Developers: Strengthen your logical thinking and code efficiency with increasingly complex programs.

**Automation** Engineers: Enhance your Java skills with practical programs that are directly applicable to Java automation.

## Contributing
We welcome contributions! If you have an idea for a new program or an improvement to an existing one, please fork the repository and submit a pull request. Your contributions can help others learn and grow.

## License
This repository is licensed under the MIT License. See the LICENSE file for more details.