Can't figure out what is wrong with my code

I've been making a code that blinks two LED's depending on the amount you type in, however whenever it should ask me how many times to blink the Yellow LED in the serial monitor, it skips right past it.
Here is my code:

int redLEDPin=9;
int yellowLEDPin=10;
int redOnTime=250;
int redOffTime=250;
int yellowOnTime=250;
int yellowOffTime=250;
int numYellowBlinks;
int numRedBlinks;
String redMessage="The Red LED is Blinking";
String yellowMessage="The Yellow LED is Blinking";

void setup() {
Serial.begin(115200);
pinMode(redLEDPin, OUTPUT);
pinMode(yellowLEDPin, OUTPUT);
}

void loop() {
Serial.println("How Many times Do You Want the Red LED to blink?");
while(Serial.available()==0) {
}
numRedBlinks=Serial.parseInt();

Serial.println(redMessage);
for (int j=1; j<=numRedBlinks; j=j+1) {
Serial.print(" You are on Blink #: ");
Serial.println(j);
digitalWrite(redLEDPin,HIGH);
delay(redOnTime);
digitalWrite(redLEDPin,LOW);
delay(redOffTime);
}
Serial.println(" ");
Serial.println("How Many times Do You Want the Yellow LED to blink?");
while(Serial.available()==0) {
}
numYellowBlinks=Serial.parseInt();

Serial.println(yellowMessage);
for (int j=1; j<=numYellowBlinks; j=j+1) {
Serial.print(" You are on Blink #: ");
Serial.println(j);
digitalWrite(yellowLEDPin,HIGH);
delay(yellowOnTime);
digitalWrite(yellowLEDPin,LOW);
delay(yellowOffTime);
}
Serial.println(" ");
}

Serial monitor line ending is set to what?

Ahh, I see, I changed it from "newline" to "no line ending" and it fixed the problem, thank you!

ThisIsMyArduinoAccount:
Ahh, I see, I changed it from "newline" to "no line ending" and it fixed the problem, thank you!

Another way to fix it is to flush the input after the prompt and before waiting for input:

 Serial.println("How Many times Do You Want the Red LED to blink?");
 while(Serial.available() > 0) Serial.read(); // Flush the input buffer
 while(Serial.available() == 0) ; // Wait for some input
 numRedBlinks=Serial.parseInt();

This method will work with any line endings, including "No line ending".