Arduino Due-Not responding to Serial commands entered through Serial monitor.

Hello everyone,

I am using Arduino due board.I want to communicate the arduino with PC.I am sending the serial commands through the serial monitor,but the arduino is not able to read serial data. But Serial.print() is working fine.Arduino is sending the data.Problem is with reading the data…
I have uploaded the following code:

ser_3.ino (365 Bytes)

Can you please insert the code in the a post? It's small enough. People using cell phones can probably not read it.

Type [code]
Paste your code after that
Type [/code] after that

Your snippet works fine, but you forgot a "}" at the end of the code and select 250000 instead of 9600 bauds

Are you aware that the Arduino serial monitor does not send characters as you type, but sends the whole line after you press Return/Enter?