[ad_1]
I found the answer to my question.
Field field = this.getClass().getDeclaredField(nameOfField);
return (Double) field.get(this);
[ad_2]
solved Is there a shorter way to write this code, without repeating three times switch?
[ad_1]
I found the answer to my question.
Field field = this.getClass().getDeclaredField(nameOfField);
return (Double) field.get(this);
[ad_2]
solved Is there a shorter way to write this code, without repeating three times switch?