Pavi S

Pavi S

  • NA
  • 41
  • 74.5k

Counting words in the list Using c#

Aug 14 2012 12:25 AM
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)