0% found this document useful (0 votes)
9 views1 page

String Array Questions

Uploaded by

Sankit Ingale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

String Array Questions

Uploaded by

Sankit Ingale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Java String Array Practice Question Bank

1. Print all elements of a string array.

2. Find the length of each string in the array.

3. Convert all strings in the array to uppercase/lowercase.

4. Check if a particular string exists in the array.

5. Count how many times a specific word appears in the array.

6. Print all unique words from the string array.

7. Sort the array of strings alphabetically.

8. Reverse each word in the array.

9. Find the longest and shortest word in the array.

10. Remove duplicate strings from the array.

11. Find the most frequently occurring word in the array.

12. Group strings that are anagrams.

13. Find common strings in two different string arrays.

14. Concatenate all the strings in the array into a single string.

15. Check if two string arrays are equal (same words and order).

16. Print strings that start with a vowel.

17. Print strings with length > 5.

18. Replace a word in the array.

19. Find and print palindromes in the array.

20. Print all strings that contain a given character (e.g., 'a').

21. Check if two arrays are anagram groups.

22. Merge two string arrays into one.

23. Find strings that are substrings of other strings.

24. Print words that appear more than once.

25. Count total characters (excluding duplicates).

You might also like