use Java for Arduino code example
Example: java arduino
boolean connected = link.connect(comPort, baudRate); // comPort could be "COM19" for windows
boolean connected = link.connect(comPort, baudRate); // comPort could be "COM19" for windows