Results 1 to 2 of 2
  1. #1
    katturv is offline Member
    Join Date
    Oct 2010
    Posts
    18
    Rep Power
    0

    Default hash map program

    i have a map with the following inputs{1,1,2,3,4,4,4,5}
    i want to find out the how many 1 and 4 are there ......
    can anyone give a sample program

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by katturv View Post
    i have a map with the following inputs{1,1,2,3,4,4,4,5}
    i want to find out the how many 1 and 4 are there ......
    can anyone give a sample program
    Asking for a sample program is close to asking for a solution, and rather than asking for this, why don't you please show us what you've tried and what problems you are having with your code.

    edit: same as my reply to you here: can static methods be overloaded?

Similar Threads

  1. Hash Set in Java
    By muj in forum New To Java
    Replies: 14
    Last Post: 08-09-2010, 05:11 PM
  2. how to sort in this hash map
    By akira_mz86@yahoo.com in forum New To Java
    Replies: 6
    Last Post: 03-17-2010, 03:19 AM
  3. Hash
    By sandy1028 in forum New To Java
    Replies: 4
    Last Post: 04-17-2009, 11:36 AM
  4. Hash Map
    By rekha in forum New To Java
    Replies: 1
    Last Post: 03-21-2009, 02:00 PM
  5. Hash Table help
    By rhm54 in forum New To Java
    Replies: 0
    Last Post: 02-08-2008, 02: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
  •