You can set the value of the field by calling the set() method on the Field object , where the first parameter is the object that has the field value that you’d like to set, and the second parameter is the value of that field. There are other ‘set’ methods for primitive (non-object) field types.