What's required: I have to replace the key list.firstName with data in the list having dto object with the method called getFirstName.
What's Happening: First of all when i am going to extract the list from the ListDto which is having the method List getList , but the invoke method is returning the toString representation i.e. [ClassName@hashcode] so i am not able to do anything after that.
Ideally:It should have returned me the list so that i can invoke the get(x) on it and that getFirstName on the returned object.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
posted 11 years ago
Thanks Ilja Preuss,
I am able to solve the problem just one of those stupid mistakes involved in changing the customized code to generalized one.