Updated Java Code

Java Code updated. Still having problems with Arduino connection.