What UKHeliBob said, but also with that bit of code on the Arduino...
while(Serial.available() < 1);
I think you have a type-o there. If Serial.available() is less than 1 it must be 0 (AFIK the return is unsigned). If Serial.available() returns zero then there isn't any available bytes in the serial buffer, thus an immediate call to Serial.read() would most likely return garbage. Me thinks you want greater than instead of less than, and make sure your Arduino code is trying to read exactly what your Processing code is sending. No more, no less.