Problem using String

I'm using Java. Every time I print()/println() the event is called in java(I'm using the rxtx library of java and the method is called serialEvent(SerialPortEvent oEvent))
But you are right. I'm a newbie trying to get these things to know by watching examples and trying to find out what everything does. There are easier ways to do that, sure..