I have
Field f = this.getClass().getFields()[0];
I need to know if f\'s value in this is null or not
f
this
null
field.get(target) returns Object. So you can checkif (field.get(this) == null) {..}
Object
if (field.get(this) == null) {..}
If the field is primitive, it will get wrapped. int -> Integer, char -> Character, etc.
int
Integer
char
Character