Java Programming

Java is a multi-platform, object-oriented, and network-centric language used for everything from mobile apps to enterprise software.

PROGRAMS

ODD OR EVEN

Check whether a given number is odd or even.

PRIME NUMBER

Check if a number is prime.

FACTORIAL

Calculate the factorial of a number using recursion.

PALINDROME

Check if a number is a palindrome.

SUM OF N NATURAL NUMBERS

Find the sum of the first N natural numbers.

FIBONACCI SERIES

Generate the Fibonacci series using recursion.

REVERSE A NUMBER

Reverse the digits of an integer.

GCD OF TWO NUMBERS

Find the Greatest Common Divisor (GCD) of two numbers.

ARMSTRONG NUMBER

Check if a number is an Armstrong number.

LINEAR SEARCH

Implement the linear search algorithm.

BINARY SEARCH

Implement the binary search algorithm.

BUBBLE SORT

Sort an array using Bubble Sort.

MERGE SORT

Sort an array using Merge Sort.

INSERTION SORT

Sort an array using Insertion Sort.

QUICK SORT

Sort an array using Quick Sort.

SELECTION SORT

Sort an array using Selection Sort.

HEAP SORT

Sort an array using Heap Sort.

STACK

Implement a basic stack using Java's Collection Framework.

QUEUE

Implement a priority queue using Java's Collection Framework.