(updated)Help on Serial communication between Arduino and PC!!

I was wondering that too, but he said it worked OK.

below is the code I used on Mega, it worked perfectly.

So who am I to argue with the OP?