title: Arduino serial monitor and java resets variables
body: <p>I wrote a small app to turn on an LED light connected to my Arduino board. The app sends in a certain byte value to turn on the LED and a certain value to turn it off through the USB port.  The strange thing is that for some reason when I use the serial monitor in the arduino development environment to turn on the LED and then close the serial monitor the LED turns off without me inputting the right byte value, the same also happens in my java test app.  What puzzles me is that in my C# app I can send in the right byte value to turn on the LED then turn off my app and the LED is still on.  I'm totally confused why this is happening.</p>