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.
- 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.
- Clone the Repository:
Clone this repository to your local machine using the following command:git clone https://github.com/yourusername/100-JAVA-Programs.git
- 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.
- 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:
Below is the list of programs included in this repository, organized under the src directory:
-
Simple Java Program
File: src/HelloWorld.java
Description: Prints "Hello, World!" to the console. -
Print Integer in Java
File: src/Integers.java
Description: Prints an integer to the console. -
Command Line Argument
File: src/Arguments.java
Description: Demonstrates handling and printing of command-line arguments. -
Get Input Using Scanner
File: src/GetInputFromUser.java
Description: Accepts user input using the Scanner class. -
Convert Fahrenheit to Celsius
File: src/FahrenheitToCelsius.java
Description: Converts temperature from Fahrenheit to Celsius. -
Swap Two Numbers Using Third Variable
File: src/SwapNumbers.java
Description: Swaps two numbers using a temporary variable. -
Swap Two Numbers Without Third Variable
File: src/SwapNumbersWithout.java
Description: Swaps two numbers without using an extra variable. -
Add Two Numbers
File: src/AddNumbers.java
Description: Adds two numbers and displays the result. -
Find Largest of Three Numbers
File: src/LargestOfThreeNumbers.java
Description: Finds the largest among three numbers. -
If-Else Statement Program
File: src/IfElse.java
Description: Demonstrates the if-else conditional statement. -
Odd or Even Number
File: src/OddOrEven.java
Description: Checks whether a number is odd or even. -
Factorial Program
File: src/Factorial.java
Description: Calculates factorial of a number. -
Compare String Program
File: src/CompareString.java
Description: Compares two strings lexicographically. -
For Loop Program
File: src/ForLoop.java
Description: Demonstrates the use of for loop. -
While Loop Program
File: src/WhileLoop.java
Description: Demonstrates the use of while loop. -
Reverse Number Program
File: src/ReverseNumber.java
Description: Reverses a valid integer number. -
Prime Number Program
File: src/PrimeNumbers.java
Description: Checks whether a number is prime. -
Armstrong Number Program
File: src/ArmstrongNumber.java
Description: Checks whether a number is an Armstrong number. -
Multiplication Table Program
File: src/MultiplicationTable.java
Description: Prints multiplication table of a number. -
Enhanced For Loop Program
File: src/EnhancedForLoop.java
Description: Demonstrates enhanced for-each loop. -
Alphabets Program
File: src/Alphabets.java
Description: Prints alphabets using loop. -
Break While Loop Program
File: src/BreakWhileLoop.java
Description: Demonstrates break statement in while loop. -
Break and Continue While Loop Program
File: src/BreakContinueWhileLoop.java
Description: Demonstrates break and continue statements. -
Reverse String Program
File: src/ReverseString.java
Description: Reverses a string. -
Palindrome String Program
File: src/Palindrome.java
Description: Checks whether a string is palindrome. -
String Comparator Program
File: src/StringComparator.java
Description: Compares two strings. -
String EndsWith Program
File: src/StringEndsWith.java
Description: Demonstrates endsWith() string method. -
IndexOf Input Program
File: src/IndexOfInput.java
Description: Demonstrates indexOf() method. -
Replace All String Program
File: src/ReplaceAllEnterString.java
Description: Replaces words in a string. -
Split String Program
File: src/SplitExample.java
Description: Demonstrates split() string method. -
String Trim Program
File: src/StringTrimExample.java
Description: Removes leading and trailing spaces from string. -
String Lowercase Program
File: src/StringLowerExample.java
Description: Converts string to lowercase. -
String Methods Program
File: src/StringMethods.java
Description: Finds string length, replace text, and concatenate strings. -
Method Program
File: src/Method.java
Description: Demonstrates Java methods. -
Static Block Program
File: src/StaticBlock.java
Description: Demonstrates static block execution before main method.
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.
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.
This repository is licensed under the MIT License. See the LICENSE file for more details.