Retaining Variable Value in Arduino - Possible?

I use a 9V center positive ac adapter with 1A current rating. Make sure it is center positive.