Artistic Style is a variant on indent that can handle C, C++ and Java source. WWW: http://astyle.sourceforge.net/