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?