Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Frits Walraven
  • Himai Minh

converting list to table

Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a Arraylist of number of Hashmaps like


map1- {firstName=Fernando,lastName=Torres, age=22, ssn=23324}
map2-{firstName=william, lastName=gallas, age=33, ssn=23824}
map3-{firstName=santiago, lastName=Munez, age=20, ssn=23325}
map4-{firstName=cristiano, lastName=ronaldo, age=25, ssn=23325}
map5-{firstName=Lionel, lastName=Messi, age=20, ssn=23326}
map6-{firstName=cesc, lastName=Fabregas, age=23, ssn=23327}
map7-{firstName=Andre, lastName=arshavin, age=29, ssn=23328}
map8-{firstName=frank, lastName=lampard, age=31, ssn=23329}
map9-{firstName=Nemanja, lastName=Vidic, age=24, ssn=23330}

Now i want to convert it into a table like key as the firstrow and rest rows will have values.
Also this list and Hashmap I mentioned earlier is dynamic i.e keys and values can be different altogether and number of maps can vary.
I'm so happy! And I wish to make this tiny ad happy too:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic