It's not the first exercice that i have this mistake it's really anoying because i don't know why. I've tried many things, I removes all the "{}"; I putt a signle "else" in line 26; I set line "26" empty; I wrote "else if (nm>1000 || nm<1);", and let it empty on line 26; I've tried to set an empty print like this "System.out.println();" ect... It's not the first time that i have exactly the same error, pleas someone can explain why ?