hashmaps and arraylists

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • namrata mukherjee
    New Member
    • Jan 2008
    • 1

    #1

    hashmaps and arraylists

    i have a Hashmap whose value is an array list which in turn is a Hashmap.please tell me how to implement this in code
  • heat84
    New Member
    • Nov 2007
    • 118

    #2
    Originally posted by namrata mukherjee
    i have a Hashmap whose value is an array list which in turn is a Hashmap.please tell me how to implement this in code
    I could have helped had you sent your sample code and an explantion of what your problem really is.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by namrata mukherjee
      i have a Hashmap whose value is an array list which in turn is a Hashmap.please tell me how to implement this in code
      I don't understand your question: how can a List be a Map?

      kind regards,

      Jos

      Comment

      • BigDaddyLH
        Recognized Expert Top Contributor
        • Dec 2007
        • 1216

        #4
        Originally posted by namrata mukherjee
        i have a Hashmap whose value is an array list which in turn is a Hashmap.please tell me how to implement this in code
        Speak in code, please! Do you mean this?

        [CODE=Java]Map<?, List<Map<?, ?>>>[/CODE]

        Comment

        • dmjpro
          Top Contributor
          • Jan 2007
          • 2476

          #5
          Originally posted by namrata mukherjee
          i have a Hashmap whose value is an array list which in turn is a Hashmap.please tell me how to implement this in code
          Yeah Namrata come with your Sample Code.
          I think that would be better for experts to answer.

          Debasis Jana

          Comment

          Working...