In Javascript, if you want to inspect some object in chrome,
console.log(object)
will printout variables, and methods about the object.
Ruby also has object.inspect
which returns basic information about the object.
What code should I use in Java to inspect an object?
All the code you need to inspect Java objects is in the java.lang.reflect package.
You'll have to write a fair bit of code yourself using that API though.
Apache's BeanUtils is somewhat easier.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With