Coders Packet

Finding frequency of characters in a word or a sentence using Java

By J Satya Srinivas

This project is developed in Java and can be used to find how many times each character occurred in a word or a sentence.

This project is developed in Java and it will help a user to find out how many times each character occurred in a word or a sentence. When the project is executed, the user is prompted to enter a word or a sentence. After the user enters a word or a sentence and presses enter, the user can see the total number of characters in the entered word or sentence. Then, the output will display how many times each character occured in the entered word or sentence. The project gives a count of letters based on their case. For example: If the user enters the word as 'Success', the output will show 'S' occurred 1 time and 's' occurred 2 times because uppercase 'S' occured 1 time and lower case 's' occured 2 times in the given example. So, the case of letters is also considered while counting the number of times each character occured.

Screenshots:

Character Frequency 1

Character Frequency 2

Character Frequency 3

Download project

Reviews Report

Submitted by J Satya Srinivas (satyasrinivasj)

Download packets of source code on Coders Packet