• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to add every entry into a List as an Object

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello every one,
I used to get data as a List object which consist of Object[] array. This means

List obj--contains--->[Object[],Object[].......]----iterated for a single Object---->Object---individual property--->property, property,.......property



Due to some changes i am now forced to stick to a particular POJO which comes dynamically, i handled this by using my own wrapper class which will add the individual property of the pojo to a List. Finally i obtained a List of Lists.

List obj---contains----->[List,List......List]----iterate for a List------>List--------->displays value of List Obj



with the above i couldn't view the individual entry in the list where it displays like a whole.
for example
[some value, some value, some value...............some value]

but i want it like an individual object, more over i will be entering the values for the List

tried like

i want the some value to be added to the List object as an Object, or if any one can suggest to obtain the individual values is also more helpful.
Please help me in this regard.

 
Saloon Keeper
Posts: 15529
364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you start over? I don't think I'm the only one who has absolutely no idea what you're talking about.

What are you trying to do? What are you doing now? What isn't working? Show some code as well.
 
reply
    Bookmark Topic Watch Topic
  • New Topic