What is the Java equivalent of PHP var_dump?

后端 未结 11 637
北荒
北荒 2020-12-12 14:58

PHP has a var_dump() function which outputs the internal contents of an object, showing an object\'s type and content.

For example:

         


        
11条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 15:01

    You XML serialization, and you should get a very neat representation even of deeply nested objects.

提交回复
热议问题