Java Programs List (1–39)
1. Reverse a String
2. Check for Palindrome
3. Fibonacci Series
4. Factorial of a Number
5. Prime Number Check
6. Count Vowels and Consonants in a String
7. Sort an Array
8. Merge Two Arrays
9. Find the Largest Element in an Array
10. Remove Duplicates from an Array
11. Check if a Number is Armstrong
12. Reverse a Number
13. Calculate GCD of Two Numbers
14. Check for Anagram
15. Count the Number of Digits in a Number
16. Print the Prime Numbers in a Range
17. Find the Second Largest Element in an Array
18. Swap Two Numbers
19. Print Pascal’s Triangle
20. Find the Missing Number in an Array
21. Convert Decimal to Binary
22. Check for Perfect Number
23. Implement a Simple Calculator
24. Find the Sum of Digits of a Number
25. Find the Length of a String
26. Check if a String is Empty
27. Count the Occurrences of a Character in a String
28. Find the First Non-Repeated Character in a String
29. Remove All Whitespaces from a String
30. Find the Common Elements in Two Arrays
31. Find the Factorial of a Number using Recursion
32. Generate Random Numbers
33. Check if a Year is Leap Year
34. Find the Sum of First N Natural Numbers
35. Implement a Simple Login System
36. Check if a String Contains Another String
37. Find the Maximum Occurring Character in a String
38. Implement Bubble Sort
39. Implement Selection Sort