One of my favorite functions in Python (I know this is not really a python function) is doc testing. For me, this really complements the standard documentation and helps keep it up to date. If you are looking for something similar in Java, I found JDocTest - http://cscott.net/Projects/JDoctest/ - last updated two years ago, and doctestj http://code.google.com/p/doctestj/ that have not been updated since 2007.
Obviously, Java is not a Python-based interpreter, but maybe there is some kind of modern library that allows you to use a similar function in java?
r0u1i source
share