In this video, we solve an important ICSE Computer Applications String question: How to find the frequency of each letter in a string and print it in Alphabetical Order.
This is a common question in Class 10 Board Exams and Pre-boards. Unlike standard frequency programs, the tricky part here is ensuring the output is sorted (A to Z) regardless of how the words appear in the sentence.
📝 Question Solved in this Video: "Write a program to input a sentence and print the frequency of each letter in alphabetical order."
Example Input: COMPUTER APPLICATION
Target Output: A 2 C 2 ... (and so on in sorted order)
💡 Key Concepts Covered:
Java String Handling
Nested For Loops
ASCII Character Comparison
Output Formatting in Java
#ICSEClass10 #JavaProgramming #ComputerApplications #StringHandling #LearnEasilyByAnurag #BoardExam2025 #BlueJ
About the Channel: Welcome to Learn Easily - By Anurag! I create tutorials to help ICSE and ISC students master Computer Applications and Java programming. Subscribe for more easy-to-understand coding videos!
________________________________________________________________________________________________
Link of all important string questions:-
Replace first and last character:- • Program to Swap First and Last Character o...
Frequency of each character:- • Frequency of Each Letter in Alphabetical O...
Frequency of each character(BLUEJ Code+Explanation):- • frequency of each letter of sentence in al...
Reverse characters of a string :- • How to Reverse a String in Java | ICSE Cla...
Reverse words in string :- • Reverse Words in a String in Java | ICSE C...
All combination of three and four letter word without repetition(BLUEJ) :- • print all combination without repetition o...
All combination of three and four letter word without repetition:- • all combination of three letter word | al...
print initials of a name :- • Print initals of a name input by user | St...
print Initials of name(with full surname) :- • Java Program: Print Initials with Full Sur...
Print names which stat and end with same character(String array) :- • display all names which start and end with...
Replace all letters in string with characters following it :- • ICSE Class 10 Java: Replace Each Character...
from a sentence print names which start and end with same letter :- • ICSE Class 10 Java: Print Words Starting &...
print names which start and end with "R" or "r"(String array) :- • print strings which start with 'r' OR 'R' ...
program to assign 5 names to an array of #strings.Count and print number of lowercase letters in each name(BLUE J) :- • Assign 5 names to an array of strings.Coun...
program to assign 5 names to an array of #strings.Count and print number of lowercase letters in each name(BLUE J) :- • Assign 5 names to an array of strings.Coun...
replace all vowels with next character :- • ICSE Class 10: Replace Vowels with Next Ch...
remove all vowels from string OR print all consonants in string :- • Remove Vowels from String in Java | ICSE C...
print each word of a sentence in separate line :- • Print each word in separate line | icse pr...
print all pair of vowels in a sentence :- • Consecutive Vowels Program in Java | ICSE ...
print in capital only first letter of each word of a sentence separated by a full stop :- • icse specimen question 2020 || semester 2 ...
PIGLATIN WORD :- • Piglatin Word | icse semester 2 | computer...
PALINDROME STRING :- • Define a class to accept string convert in...
change case of all letters of string :- • swap case of each character | icse compute...
print length of longest word in a sentence:- • Java Program to Find Length of Longest Wor...
print all pair of letters/print double letter sequences:- • Double Letter Sequences Java Program | ICS...
program to assign a full path and file name as given below. Using library functions, extract and output the file path, file name and file extension separately:- • icse semester2 computer application || pre...
Define a class to accept and store 10 strings into the array and print the strings with even number of characters:- • String Array: Print Even Length Strings | ...
Define a class to accept two strings, convert them into uppercase, check and display whether two strings are equal or not, if the two strings are not equal, print the string with the highest length or print the message both the strings are of equal length :- • icse specimen paper semester 2 solution ||...
________________________________________________________________________________________________
Link of all important array questions:-
Greatest and smallest number in an integer array:- • Find Largest & Smallest Number in Array in...
find and print greatest and smallest number in array and also their sum and product(BLUE J code+Explanation) :- • greatest and smallest elements of array | ...
replace all even number with 0 and odd with 1 in array and then display array elements in separate line:- • replace even number with 0 and odd with 1 ...
declare char array of size 15,accept elements in array and count and display number of vowels in array and count and display number of digits in array:- • count and display number of vowels | count...
sum of even indices elements and product of odd indices elements :- • Sum of elements at even indices | Product ...
declare array of size 20 of double type,accept elements from user,calculate and print sum of all elements and highest value of the array :- • ICSE Class 10 Computer Applications Specim...