The print method is provided with the following signature:
public void print (StringBuilder sb, String varName, int level)
The method calls are made in much the same way as the calls detailed in the previous section, and users are recommended to read them if questions persist. The output format is exactly the same as well.
Users should note that StringBuilder is unsynchronized, and so, too, are the generated print-to-string methods. Access to the StringBuilder should be locked properly (or one StringBuilder per thread should be allocated) to ensure that output is in order.