0% found this document useful (0 votes)
2 views

java_programs

The document outlines a series of programming challenges primarily focused on string manipulation and array operations in Java. It includes tasks such as reversing strings, checking for palindromes, counting vowels, and finding unique characters, among others. Additionally, it presents challenges related to arrays, such as finding the second largest number and removing duplicates.

Uploaded by

Arun Vastrad
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

java_programs

The document outlines a series of programming challenges primarily focused on string manipulation and array operations in Java. It includes tasks such as reversing strings, checking for palindromes, counting vowels, and finding unique characters, among others. Additionally, it presents challenges related to arrays, such as finding the second largest number and removing duplicates.

Uploaded by

Arun Vastrad
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Reverse a String Without Using Built-in Functions


2. Check if a String is a Palindrome, Ignoring Case
3. Count the Number of Vowels and Consonants in a String
4. Find the Longest Substring Without Repeating Characters
5. Check if a String Contains Only Digits
6. Remove All Punctuation from a String
7. Swap Case of Each Character in a String
8. Find the First Non-Repeating Character in a String
9. Convert a String to a Character Array and Back
10. Count the Number of Words in a String Using Regex
11. Implement String Compression Using Counts of Repeated Characters
12. Extract a Substring Between Two Characters
13. Check if Two Strings are Rotations of Each Other
14. Find All Permutations of a Given String
15. Find the Minimum Number of Steps to Convert One String to Another
16. Count the Frequency of Each Character in a String
17. Create a New String by Removing All Occurrences of a Given Character
18. Determine if a String is a Valid Number (Integer/Float)
19. Check if a String is an Isogram (No Repeated Characters)
20. Implement a Method to Compare Two Strings for Equality (Without
Using .equals())
21. Rotate a String to the Left by a Given Number of Characters
22. Replace All Instances of a Substring with Another Substring
23. Check if a String is a Subsequence of Another String
24. Find All Unique Characters in a String
25. Convert a Given String to Camel Case
26. Count the Number of Times One String Occurs in Another
27. Extract Numbers from a String and Return as a List
28. Validate a String as a Proper Email Address
29. Find the Position of a Substring in a String
30. Merge Two Strings Alternately

1.Reverse a String Without Using Built-in Reverse Function


Problem: Write a Java program to reverse a string without using built-in functions
like
StringBuilder.reverse().
2.Find the Second Largest Number in an Array
Problem: Given an array of integers, write a program to identify the second largest
number. 3.Count the Number of Vowels in a String
Problem: Implement a function that counts the number of vowels (a, e, i, o, u) in a
given string.
4.Check if a String or Number is a Palindrome
Problem: Create a program that determines whether a given string or number is the
same when read forwards and backwards.
5.Remove Duplicates from an Unsorted Array
Problem: Write a Java program to remove duplicate elements from an unsorted array
and display the unique values.

Additional Java Challenges for Testers


6.Find the Missing Number in an Array
Problem: Given an array containing numbers from 1 to N, with one number missing,
write a program to find the missing number.
7.Check if Two Strings are Anagrams
Problem: Implement a function to check whether two given strings are anagrams
(contain the same characters but in a different order).
8.Find the First Non-Repeating Character in a String
Problem: Write a Java program to find the first character in a string that does not
repeat.
9.Swap Two Numbers Without Using a Third Variable
10.Find the Factorial of a Number Using Recursion
Problem: Write a recursive function to compute the factorial of a given number

You might also like