How to generate the output for a given java collection object

Rajvinder Pal <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi ,
 
Following is my java object 'itemMap'.And i want to generate the output as given below
 
Map<Integer, Set<String>> itemMap = newHashMap<Integer, Set<String>>();//id 1Integer i1 = 
Set<String> itemSet1 = 
itemSet1.add(
itemMap.put(i1, itemSet1);newInteger(1);newHashSet<String>();"A");//id 2Integer i2 = 
Set<String> itemSet2 = 
itemSet2.add(
itemSet2.add(
itemMap.put(i2, itemSet2);newInteger(2);newHashSet<String>();"B");"C");//id 3Integer i3 = 
Set<String> itemSet3 = 
itemSet3.add(
itemSet3.add(
itemMap.put(i3, itemSet3);
System.
 
Expected output:
 
1 A
2 B C
3 D E
 
Could anyone let me know how can i generate this using freemarker template?
 
Thanks,
RajvindernewInteger(3);newHashSet<String>();"D");"E");out.println(itemMap);

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.