# Java Programs

## Java Mirrored Right Triangle Star Pattern Programs | Patterns

Java program to print mirrored right triangle star pattern program. We have written below the print/draw mirrored right triangle asterisk/star pattern program in four different ways with sample example and output, check it out. At the end of the program, we have added compiler so that you can execute the below codes. Print Mirrored Right Triangle Star Pattern – Using For ...

## Prime Number Java Program – 1 to 100 & 1 to N | Programs

Prime Number Java Program –  Java Program to Check Whether a Number is Prime or Not using different methods. The compiler has also been added so that you can execute the programs yourself, alongside suitable examples and sample outputs added for each program. Also, we will see the method of how to find out prime numbers between 1 to n, ...

## Java Program: Calculate Roots of Quadratic Equation | Java Programs

Java program to calculate roots of the quadratic equation – The following program has been written in 2 simple ways. A quadratic equation is of the form ax2+bx+c=0 where a,b,c are known numbers while x is the unknown. Our problem statement is to write a code to find the roots of this equation. Roots of the equation are the values ...

## Insertion Sort Java Algorithm – 2 Ways | Java Sortings

Implement Insertion Sort Algorithm In Java – We will discuss the various methods to Implement Insertion Sort Algorithm In Java. The compiler has been added so that you can execute the programs easily, alongside suitable examples and sample outputs. The methods are – Also check Heap Sort In Java Algorithm – Using Array. Algorithm – Using Buffered Reader. Insertion Sort ...

## Left Arrow Star Pattern Java Program – Patterns

Java program to print Left Arrow star pattern program. We have written below the print/draw Left Arrow asterisk/star pattern program in four different ways with sample example and output, check it out. At the end of the program, we have added compiler so that you can execute the below codes – List of Complete Pattern Programs in Java here. Print Left ...

## GCD Of Two Numbers In Java – Programs | 5 Ways

Java program to find out the GCD between two numbers. Here, we will discuss the various methods to find out the GCD between two numbers. Also, we’ll learn how to calculate the GCD of n numbers. Soon Compiler has added to it so that you can execute the set of programs yourself. The methods as aforementioned are: Using Static Method ...

## Hollow Diamond Star Pattern Java Program | Patterns

Java program to print hollow diamond star pattern program. We have written below the print/draw hollow diamond asterisk/star pattern program in four different ways with sample example and output, check it out. At the end of the program, we added compiler so that you can execute the below codes. Using For Loop Using While Loop Using Do While Loop Using For ...

## Java Program For Addition, Subtraction, Multiplication, Division | Programs

Java program for Addition, Subtraction, Multiplication and Division. Here we will discuss the most common mathematical operations such as addition, subtraction, multiplication and division In java. The compiler has been added as well so that you can execute the programs yourself, along with suitable examples and sample outputs. The programs as aforementioned are: Addition. Addition using Static Method. Subtraction. Multiplication. ...