Print class variables

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.

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:

1 Like