Transmitting a string from a java program to Ard.

Okay, so I used the example code at

to allow communication between java and the arduino. It successfully receives stuff I send from the arduino to the java-side, ie. system.println("ABC") will output ABC on the java com window, but how can I transmit a string from Java to the arduino? Any ideas?



Use the print commands an redirect the output to the serial port.