IDE it do not reconnace the" for " loop and the "serial begin "

the IDE do not reconnace the for loop and the serial monitor?
do some body knows how to fix it
int blueontime = 500;
int blueoftime = 500;

void setup()
{

pinMode (redLEDpin,OUTPUT);
pinMode (blueLEDpin, OUTPUT);
}

void loop() {
for (int j=1;j<=10;j=j+1);{ // it does,t reconnice the "for" loop ???
digitalWrite (redLEDpin, HIGH);
delay (ontimered);
digitalWrite (redLEDpin, LOW);
delay (oftimered);}

digitalWrite (blueLEDpin, HIGH);
delay (blueontime);
digitalWrite (blueLEDpin,LOW);
delay (blueoftime); this problem

for  (int j=1;j<=10;j=j+1);

The trailing semicolon should not be there

There are no serial commands in the code that you posted

Your partial code does not compile so it's not going to do anything useful.

You will need a Serial.begin() and some other Serial commands before the serial monitor shows you anything.

Steve

 for  (int j=1;j<=10;j=j+1) ; {
 digitalWrite (redLEDpin, HIGH);

The 'for' loop can only contain one statement or one block of statements surrounded by '{' and '}'. The ';' is a statement so what the compiler sees is:

  for (int j=1; j<=10; j=j+1)
    ;  // Do this null statement ten times...


  // ... then do this block of statements once.
  {
  digitalWrite (redLEDpin, HIGH);