Tag Archives: private

[Java] Accessing private fields

The problem: you have to use class that we can’t modify for some reason. You want to get or set values of fields (name, surname) of class User, but cannot do it in the other way that calling toString() method … Continue reading

Posted in coding, java, standard edition | Tagged , , | Leave a comment