Working Java Code!

Java code that actually works! Just got to tweak it to work with the
Arduino program.