• Img
  • Img
  • Img
  • Img
  • Img
  • Img
  • Img
  • Img
  • Img
  • Img

Java String Programs

For Classes IX - XII

S.No.
Java Strings Based Programs
Action
1
Java Program to count the total number of characters in a string.
2
Write a program in java to capatalize each word in given sentence. Solution
3
Write a program to remove the consecutive duplicate character in given string. Ex- Input String "ccooommmpputterrr", Output="computer" Solution
4
Java Program to count the total number of vowels and consonants in a string.
5
Java Program to determine whether two strings are the anagram.
6
Write a program to find the length of each word in a string. Solution
7
Java Program to find all subsets of a string.
8
Java Program to find the longest repeating sequence in a string.
9
Java Program to find all the permutations of a string.
10
Java Program to remove all the white spaces from a string.
11
Java Program to replace lower-case characters with upper-case and vice-versa.
12
Java Program to replace the spaces of a string with a specific character.
13
Java Program to determine whether a given string is palindrome.
14
Java Program to determine whether one string is a rotation of another.
15
Java Program to find maximum and minimum occurring character in a string.
16
Java Program to find Reverse of the string.
17
Java program to find the duplicate characters in a string.
18
Java program to find the duplicate words in a string.
19
Java Program to find the frequency of characters. Solution
20
Java Program to find the largest and smallest word in a string.
21
Java Program to find the most repeated word in a text file.
22
Java Program to find the number of the words in the given text file.
23
Java Program to separate the Individual Characters from a String.
24
Java Program to swap two string variables without using third or temp variable.
25
Java Program to print smallest and biggest possible palindrome word in a given string.
26
Java Program to divide a string in 'N' equal parts.
27
Java Program to count the total number of characters in a string 2.
28
Java Program to count the total number of punctuation characters exists in a String.
29
Java Program to Count Number of Vowels in a String.
30
Java Program to Separate the Individual Characters from a String.
31
Java Program to Count Number of Digits in a String.
32
Java Program to Print Smallest and Biggest Possible Palindrome Word in a Given String.
33
Check if a string consists only of special characters.
34
Print the middle character of a string.
35
Swap the first and last character of a string in Java.
36
Remove first and last character of a string in Java.
37
How to remove all non-alphanumeric characters from a string in Java.
38
Convert a String to Character array in Java.
39
Move all Uppercase char to the end of string.
40
Replace a character at a specific index in a String in Java.