Create a program to word count, C/C++ Programming

Create a program WordCount1Main.java doing the following:


For each word in the le word.txt
{ Create an object of the class Word
{ Add the object to a set of the type java.util.HashSet
{ Add the object to a set of the type java.util.TreeSet
Note:

 The size of the sets should correspond to the number of words in the les. (Our tests gave 350 words for the le HistoryOfProgramming)

 An iteration over the words in the TreeSet should give the words in alphabetical order.

Posted Date: 3/14/2013 6:25:52 AM | Location : United States







Related Discussions:- Create a program to word count, Assignment Help, Ask Question on Create a program to word count, Get Answer, Expert's Help, Create a program to word count Discussions

Write discussion on Create a program to word count
Your posts are moderated
Related Questions
Greatest Common Divisor (GCD) - The greatest common divisor (GCD) of two integers is the largest integer that will evenly divide both integers. The GCD algorithm involves intege

programing code on board coloring in clanguage

Explain The Type Conversion in Expressions in c language? When variables and constants of different types are used in an expression they are all converted to same type. The com

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

Write a C program to compute the factorial of  5 i.e. 1x2x3x4x5 etc Write a C program to calculate the output Y for a given value of X for the following formula.       Y=X 2


Scope Resolution operator: The scope resolution operator: : is used to access global variable in the inner block. When global and local variable are identical name the scope re

C program to demonstrate Pointer to array: void p2a(int *); void main() {                 int x=10, *a,**b;                 int arr[5];                 a=&x;//po


when you allocate memory with new[], you ought to free the memory via delete[]. While you allocate memory along 'new', then use 'delete' with no the brackets. You employ new[] to a