There is quite a bit of discussion on this topic already in the forums. So next time search before posting.
We use JAVA because:
1. students learn Java in AP courses
2. garbage collection & great error handling!
3. Netbeans is a friendly IDE for first time coders
If you want more JAVA sample code , take a look at our code base from 2010 or if your brave, our 2011 development code.
http://code.google.com/p/discobots/downloads/list