-
August 1st, 2012, 12:20 PM
#1
How to use Pair in Java and implementation
Hello everyone
I am trying to work on this problem but really failing understand it properly, I mean I understood the concept but having trouble knowing how to apply it.
Basically I need to read senstences using character reader and then find output the how many times each words has occured in the sentece or sentences
Here is the code:
Code:
public class ReadOne
{
public Collection<Pair<String, Integer>> getAnswer(CharacterReader charac) throws EOFException
{
throw new UnsupportedOperationException( "No implementation Found" );
}
}
Now I have to implement the code in the class ReadOne but don't know how to do it.
I hope someone can provide some help
Thank you
Last edited by cpu2007; August 9th, 2012 at 11:25 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|