For my study in the university I\'m forced to do some ugly java basics, like working without encapsulation, main method in the same class etc. (I do not want to open a discu
You can write any other static method in the Person class and access the private variables from that method. Main is just a name. Such is life.