📘 Java Programs

📅 Check Leap Year

Learn how to determine whether a year is a leap year in Java using simple conditions.

🔁 Palindrome Number

Check if a number is a palindrome using Java by reversing digits and comparing with original.

🔢 Prime Number

Understand how to check whether a number is prime using basic Java logic and loops.

💪 Armstrong Number

Java program to determine if a number is an Armstrong number using power and digit sum.

🔄 Palindrome String

Check whether a given string is a palindrome by comparing with its reverse.

📈 Fibonacci Series

Generate Fibonacci series in Java using both loops and recursion with examples.

🔁 Reverse a String

Java methods to reverse strings using loop, StringBuilder, and recursion.

✖️ Factorial in Java

Calculate the factorial of a number using loops and recursion in Java.

✅ Check if Array is Sorted

Learn how to check if a Java array is sorted in ascending or descending order.

🔍 Find Duplicates in Array

Identify duplicate elements in a Java array using HashSet or nested loops.

🔄 Reverse Array

Reverse the elements of an array in Java using loop or Collections utility.

🥈 Second Largest in Array

Find the second largest number in a Java array with or without sorting.

📊 Sort Array Manually

Sort arrays in Java without using built-in methods like Arrays.sort().

🔺 Pascal’s Triangle

Print Pascal’s triangle in Java using nested loops for combinatorics logic.

🔢 Check String Only Digits

Simple Java logic to check if a string contains only numeric digits using regex and iteration.

🔍 First Non-Repeated Character

Efficient ways to find the first non-repeating character in a string with Java examples.

🧮 Check Anagram Strings

Java programs to check whether two strings are anagrams using sorting or frequency count.

🔄 Longest Palindromic Substring

Different approaches to find the longest palindrome substring from a given string in Java.

📈 Character Occurrence Count

How to count occurrences of each character in a string using HashMap in Java.

🚫 Remove Duplicates from Array

Learn to eliminate duplicate values from an array using Set and manual logic in Java.

🔷 Diamond Star Pattern

Print a symmetrical diamond pattern using nested loops in Java.

🔺 Pyramid Star Pattern

Learn how to print pyramid-shaped star patterns in Java using loops.

📺 Subscribe to Spring Java Lab on YouTube

Get video walkthroughs, hands-on coding, and step-by-step tutorials delivered fresh to your screen!

🔔 Visit Channel & Subscribe