Problem with serial output from arduino. Processing can't read it

I'm afraid that doesn't help. Here is the new code. Note that it matches the baud rate in Processing.

// Arduino code
void setup() {
Serial.begin(9600);
}
void loop() {
if (Serial.available() ) {
char mybuffer[4];
int throw_away1 = Serial.readBytesUntil('\n', mybuffer, 4);
Serial.println(1000);
}
}