Although there are already a lot of free tools to convert a C/C++ source file to html file, I couldn't found one which can generate to a format I like (I didn't try every one of course). And I think that it's quite interesting to write one that works for my style. If you have similar problem, you may want to chech out mine here: http://www.geocities.com/c2html/
I think it should work for Java as well if you add a few more keywords manually.
C/C++ to HTML Converter
Moderator: Board moderators