java addition

Considering there was a C tut, making the java version wasn't too hard. Let me know if you think i missed anything or should make any changes.