Skip to content

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.

Notifications You must be signed in to change notification settings

Injamhossan/Java-Practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java-Practice

Java Programming Practice Projects

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.

📁 List of Programs

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.

🛠 Technologies Used

  • Language: Java
  • IDE: VS Code
  • JDK: Java SE 8

📚 Purpose

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.

✅ How to Run

  1. Clone the repository:
    git clone https://github.com/your-Injamhossan/Java-Practice.git
    cd Java-Practice

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages