Serial connection of Processing and Arduino

Hi

Try this in Arduino side

if(Serial.available() > 0) {