2021年3月7日星期日

How to convert Object's property values in to an array in Java?

Say if I have, a list of objects like:-

[id = 1, age = 34, name = "abc"]  [id = 2, age = 34, name = "xyz"]  [id = 3, age = 34, name = "mno"]  

then I need to convert them to :-

[1], [34], [abc],  [2], [34], [xyz],  [3], [34], [mno]  
https://stackoverflow.com/questions/66476747/how-to-convert-objects-property-values-in-to-an-array-in-java March 04, 2021 at 10:11PM

没有评论:

发表评论