jeudi 25 janvier 2018

not setting value of only those field whose name is given list in java

I have class with 20 fields, and list with field names in it. I dont want to set field value who's name is in list.

Example -

Class Student { Name School DOB }

List -[ 'School']

so my function should set/update only Name and DOB as School is mention in list.





Aucun commentaire:

Enregistrer un commentaire