CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Jan 2010

    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:

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.