This repository contains a collection of basic Java programs written for practice and learning purposes. These programs cover a wide range of core Java concepts, including conditionals, loops, mathematical calculations, number theory, and basic logic building.
Here are the Java files included in this repository:
- AgeCalculator.java – Calculates age based on birth year.
- ArmStrongNumber.java – Checks whether a number is an Armstrong number.
- Calculator.java – A simple calculator performing basic arithmetic operations.
- CalculatorsThefactorial.java – Calculates the factorial of a number.
- CompoundInterest.java – Computes compound interest.
- FahrenheitToCelsius.java – Converts temperature from Fahrenheit to Celsius.
- Fibonacci.java – Generates Fibonacci series up to a certain number.
- FloatMultiplication.java – Demonstrates multiplication of floating-point numbers.
- GCD.java – Calculates the Greatest Common Divisor of two numbers.
- Grading.java – Assigns grades based on marks.
- GreatestOfThree.java – Finds the greatest number among three inputs.
- LCM.java – Calculates the Least Common Multiple.
- LeapYear.java – Checks whether a year is a leap year.
- LoopPatterns.java – Prints different types of star/number patterns using loops.
- MultiplicationTable.java – Prints the multiplication table of a given number.
- OddEven.java – Checks whether a number is odd or even.
- OddEvenBitWise.java – Checks odd/even using bitwise operators.
- OddSum.java – Calculates the sum of odd numbers within a range.
- PalindromeNumber.java – Checks whether a number is a palindrome.
- PositiveNegativeZero.java – Identifies if a number is positive, negative, or zero.
- Prime.java – Checks whether a number is prime.
- Relational.java – Demonstrates relational operators.
- ReverseTheDigits.java – Reverses the digits of a number.
- SimpleInterest.java – Calculates simple interest.
- SumOfDigits.java – Sums the digits of a number.
- TriangleArea.java – Calculates the area of a triangle.
- Language: Java
- IDE: VS Code
- JDK: Java SE 8
This repository is designed for beginners who want to understand the basics of Java programming through practical examples. Each file is self-contained and focused on a specific concept.
- Clone the repository:
git clone https://github.com/your-Injamhossan/Java-Practice.git cd Java-Practice