tech Java Programs | 500+ Programs - Java Programming
Latest :

Java Programs

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 ...

Read More »

Fibonacci Series In Java Program – 4 Multiple Ways

Java program to display a  Fibonacci Series. We will discuss the various methods to find out the Fibonacci Series In Java Program for the first n numbers. The compiler has been added so that you can execute the set of programs yourself, alongside suitable examples and sample outputs. The methods as aforementioned are: Using For Loop. Using While Loop. Using ...

Read More »

Perfect Number In Java Program – 3 Ways | Programs

Java program to check a perfect number or not. The following program has been written in 3 different ways to check whether the given number is a perfect number or not. The compiler is also added so that you can execute the program yourself, along with sample outputs citing few examples. The methods used are: Print using While Loop. Print ...

Read More »

Linear Search In Java Program – 2 Simple Ways | Programs

Java program for linear search – We will discuss the methods on how to carry out the linear search operation in Java.  Compiler has been added so that you can execute the programs by yourself, alongside suitable examples and sample outputs. The methods as mentioned above are: Linear Search – Using Array Linear Search – Using Recursion Linear Search In ...

Read More »

Implement Bubble Sort Java – Algorithm | 2 Easy Ways

Bubble Sort in Java – We will discuss the different methods to Implement Bubble Sort in 2 Simple ways. The compiler has been added so that you easily execute the programs yourself, alongside suitable examples and sample outputs added to implement bubble sort – List of all sorting Programs In Java Program – Using Array. Program – Using Buffered Reader. Bubble ...

Read More »

Java Program Sum Of digits Of A Number | Programs

Java program to calculate the sum of digits of a number. Here we will discuss the various methods to calculate the sum of the digits of any given number with the help of Java Programs. The compiler has been added so that you can execute the program yourself, alongside suitable examples and sample outputs. The methods as mentioned above are: ...

Read More »

Palindrome Program In Java – 5 Ways | Programs

Palindrome program in Java – Here, we will discuss the various methods to check whether a given number is a palindrome or not. A compiler is added so that you can execute the program yourself, alongside various examples and sample outputs are given. The methods aforementioned are: Print using For Loop Print using Static Method Print using Recursion Print using ...

Read More »

QuickSort Java – Algorithm | 2 Simple Ways

Java algorithm to implement quick sort. In this topic, we will discuss the various methods by which a quick sort algorithm/Program can be done using Array & We have added compiler to each program along with sample outputs explaining a few examples. For More Java sortings you can visit here, The methods used here are: Quick Sort Algorithm – Using ...

Read More »

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 ...

Read More »

Hollow Right Triangle Star Pattern Java Program

Java program to print Hollow right triangle star pattern program – We have written below the print/draw Hollow 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 such that you can execute the below codes. Using For Loop Using While Loop Using Do ...

Read More »
tech