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

String.: INPUT: Java Is Platform Independent OUTPUT: Independent Platform Is Java

This document provides instructions for writing Java programs (WAP) to perform various string manipulation tasks, including toggling character case, counting words and characters, reversing words and characters, finding maximum/minimum values, removing characters and duplicates, checking for matching characters, and replacing substrings. It describes 14 different programs for tasks like word and character counting, reversing order, frequency analysis, removal of elements, and comparisons.

Uploaded by

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

String.: INPUT: Java Is Platform Independent OUTPUT: Independent Platform Is Java

This document provides instructions for writing Java programs (WAP) to perform various string manipulation tasks, including toggling character case, counting words and characters, reversing words and characters, finding maximum/minimum values, removing characters and duplicates, checking for matching characters, and replacing substrings. It describes 14 different programs for tasks like word and character counting, reversing order, frequency analysis, removal of elements, and comparisons.

Uploaded by

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

 WAP to toggle case of each character in a string.

 WAP to count number of words in a String.


 WAP to find total number of alphabets, digits or special characters in a
string.
 WAP to count total number of vowels and consonants in a string.
 WAP to reverse order of words in a string.
INPUT: Java is platform independent
OUTPUT: independent platform is Java

 WAP to reverse each word in a string.


 WAP to find maximum occurring character in a string (lower case
characters).
 WAP to count frequency of each character in a string.
 WAP to remove all occurrences of a character from string.
 WAP to remove all repeated characters in a string.
 WAP to remove all occurrences of a word in string
 WAP to find the largest and smallest word in a string (Lexicographically).
 WAP to check if two Strings are created with same characters or not.
 WAP to swap two Strings without using a third variable.
 WAP to replace first and last word of a String.

You might also like