3
Answers

Counting words in the list Using c#

Pavi S

Pavi S

12y
1.7k
1
Counting words in the list Using c#
I have a list,im storing the value like
list[0]="sun"
list[1]="moon"
list[2]="Alpha"
list[3]="Sun"
list[4]="Sun"
list[5]="Moon"

i want the output like

word  count
=============================
sun 3
moon 2
Alpha 1


please anyone help me to do this.
Answers (3)