Artistic Style is a re-indenter and reformatter for C++, C and Java source code
http://astyle.sourceforge.net/