Java program to interface with microcontrollers via serial comm