I am a beginner to java.
I have a DTO with two fields
private string name; private integer zip;
I will be reading this and calling a method on Zip to come up with values for 3rd field lets say city and will need to output name, zip and city.
Should I use a Map, how can I achieve this, please help.
I tried converting to a map but not able to do it
New contributor
MRC is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.