So, you want to do something like:
Map<String, Object[]> objectMap = new TreeMap<String, Object[]>();
Object[] values = new String[] {"A", "B", "C"};
objectMap.put("First3Letters", values);
Is that right? Yes, you can do that.
dononelson
Junior Poster in Training
62 posts since Mar 2010
Reputation Points: 13
Solved Threads: 15
That means that each key can map to one entry in the map. The map doesn't care what's in the entry (or "value" as it is called). All it knows is that there is an object there (an array is considered an object).
Does that make sense?
dononelson
Junior Poster in Training
62 posts since Mar 2010
Reputation Points: 13
Solved Threads: 15