Artistic Style is a variant on indent that can handle C, C++ and Java source. WWW: http://www.bigfoot.com/~davidsont/astyle