• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 560
  • Last Modified:

Java: can I do HashMap<String, String, String, String>? if not what class can I use to store key, value1, value2, value3....?

Hello Experts,

I just tried to do this:

HashMap<String, String, String, String> hmap = new HashMap<String, String, String, String>();

but it didn't work....
 
what class can I use to store key, value1, value2, value3, value4....?

any suggestions are greatly appreciated...

Regards,
0
epifanio67
Asked:
epifanio67
  • 2
1 Solution
 
CEHJCommented:
You're probably best off with

Map<String, List<String>>

Open in new window


unless the various values should really be modelled as the instance of a class
0
 
epifanio67Author Commented:
thank you Expert....

I appreciate the help...

Regards,
0
 
CEHJCommented:
:)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now