Arduino won't upload

I wrote some code, the Arduino IDE compiled it and started with the upload process, but in the middle of the upload it gets stuck!

I was able to isulate the error to this line of code:

Serial.println("!!!")

If you add this line anywhere in your Code it won't upload...
Serial.println("sth.  !!! sth."); won't upload as well, but const char x[] = "!!!";Serial.println(x); will compile and upload.

Tested on Windows 10, Arduino IDE 1.6.5 & 1.8, with an Arduino Mega 2560.

Can someone pls fix this ASAP.

It was fixed years ago. The problem is that you have a very old bootloader on your Mega. If you do a Tools > Burn Bootloader on your Mega with any recent version of the Arduino IDE the problem will go away.

Ok, thank you!