Thank God there is at least one person who asked how to do it. I try to help people a lot, but when people submit their code without the java formatting it is just so painful to read and more difficult to help them... thanks for asking, and here is how to do it.
When you are creating a message on the forum, there is a button on the toolbar that says .java[i] . If you want to format your java code, just paste your java code in your post, then select the code (the region that has the code then click on that button. What you will see happen is that the region you selected will be enclosed with tags that look like this [java ] your code [/jav a]. Thats it et Voila! like magic your code will be nicely formated and people like me (an others) will be able to better help you because they will be able to better read your code.