Java String Intermediate Programs

Master fundamental Java concepts with these beginner-friendly programs

Anagram Check

Check if two strings are anagrams of each other.

Remove Duplicate Characters

Remove all duplicate characters from a string.

Longest Word in Sentence

Find the longest word in a sentence.

Character Frequency Count

Count the frequency of each character in a string.

String Rotation Check

Check if one string is a rotation of another.

Reverse Words in a Sentence

Reverse the order of words in a sentence.

String Compression

Compress the string by counting consecutive characters.

strstr() Implementation

Write a function to implement strstr() (find substring).

String to Integer Conversion

Write a program to convert a numeric string into an integer.

First Non-Repeating Character

Write a program to find the first non-repeating character in a string.

All Unique Characters

Check if a string has all unique characters.

Convert to Title Case

Convert the first letter of each word to uppercase.

All Substrings of a String

Generate all substrings of a string.

Vowel and Consonant Count

Count vowels and consonants in a string.

Digits Only Check

Check if a string contains only digits.

Longest Substring Without Repeating Characters

Find the length of the longest substring with all unique characters.

Remove Non-Alphabetic Characters

Write a program to remove all non-alphabetic characters from a string.

Pangram Check

Check if a string is a pangram (contains all alphabets).

Replace Spaces with %20

Replace all spaces in a string with "%20".

Make String Palindrome (Minimum Insertions)

Find the minimum characters to insert at the beginning to make a string palindrome.