Strings
Strings
Validations:-
21. Write a Program to check/validate given String value is Valid Aadhar Number or not?
Input1: 439876875869
Ouput1:Valid Aadhar Number
Input2: 43@776875869
Ouput2:Not a Valid Aadhar Number
Input3: jtniv9t349nc
Ouput3:Not a Valid Aadhar Number
Input4: 1234 5678 9101
Ouput4:Valid Aadhar Number
Input5: 1234567890123412
Ouput5:Not a Valid Aadhar Number
22. Write a Program to check/validate given String value is Valid Pan Number or Not?
23. Write a Program to check/validate given String value is Valid registration number or not of a
Vehicle?
24. Write a Program to check/validate given Password is perfect or not and the conditions are
Password length must be 9 characters and must at least one capital, one small, one
number and one special character (except space) ?
Searching:-
25. Write a program to find the given word or a character is present or not in a given String?
26. Write a program to find the index values of a given word in a given String?
27. Write a program to find the numbers in a given String and print there index values?
Separation of categories:-
28. Write a program to count the number of Special keys in a given String?
29. Write a program to count the small letters in a given String?
30. Write a program to print the all small characters, then print the capitals character, then print
the Special characters and print the numbers in a given String?
Conversions(small<->Capitals):-
31. Write a program to convert all small characters into capital characters and all capitals
characters into small characters remaining characters don’t disturb any thing print Directly?
32. Write a program to convert all small characters into capital characters and all capitals
characters into small characters of alternative places?
Reverse of a String:-
33. Write a program to print the reverse of a given word ?
34. Write a program to print the all given words in reverse without changing words positions?
Input: to print the all given words
Output:ot tnirp eht lla nevig sdrow
35. Write a program to print the given String in reverse?
36. Write a program to find the given String is Palindrome or not?
Frequency / occurrence / Duplicates:-
37. Write a program to find the count of a each and every word in a given String?
38. Write a program to find the count of a each and every character in a given String?
39. Write a program to print most repeated character and word in a given String?
40. Write a program to print the words in given string to the count(Repetation) in decreasing
order?
41. Write a program to print the unique words in a given string?
42. Write a program to print the smallest Unique word in a given String?
43. Write a program to print the largest Unique word in a given String
44. Write a program to print the words and count of the duplicate words in a given String?
subStrings:-
45. Write a program to print the all substrings in a given string?
Input: java
Output: j, ja, jav, java, a, av, ava, v, va, a
46. Write a program to find the given substring is there are not in a given String?
Sortings:-
47. Write a program to print the all words in decreasing order(word size) of a Given String?
48. Write a program to sort the words in a given String according to alphabetically
(lexigrophically)?
49. Write a program to print the “N” number of time repeated word in a given string?
50. Write a program to print all characters in alphabetical order in a given string with repetition?
Use Cases:-
51. Write a Program to print the common words in a given two Strings?
52. Write a Program to print the common Unique words in a given two Strings?
53. Write a Program to print all the words in a given two Strings by one time only?
54. Write a Program to print all the words in a given two Strings in sorted order?
55. Write a Program to print to the given String as three characters in each line?
56. Write a Program to print to the given String characters as shown in example?
Ex:- Input:- I am preparing myself for MNC’s and Product based companies.
Output:- I
am
pre
pari
ngmys
elffor
MNC’san
dProduct
basedcomp
anies.
57.