Print class variables


#1

Sorry to bother you again but I’m working on a class with a large number of variables (in C I would implement this as a struct). For debugging purposes I want to print (loop) over all variables inside this class. Unfortunatly I have no clue how to implement this.

Put me in the nasty boy room in case this is a stupid question.


#2

A class needs to @Override the toString() method, so it can return a String w/ the current value of its fields. :coffee:

Here’s a link w/ an example for it: :link: