Google Search

Monday, October 10, 2011

Write a Java program to make frequency count of words in a given text.


Write a Java program to make frequency count of words in a given text.
class Count
{


public static void main(String args[])
{ int i,c=0;
for(i=0;i<args.length;i++)
{ System.out.println(args[i]);
c++;
}
System.out.println("number of words="+c);
}
}

0 comments:

Post a Comment