title: Is it possible to access a locally stored static variable at different run times
body: <p>I need some help because I am new to Java Programming.</p>
  
  <p>I have a program to store an element assume "TotalOrders". Here I am updating this variable value after the each call to addition and removal of orders. When I run the program in different times it has to check the previously stored value in "TotalOrders".
  Ex. Initially TotalOrders = 0, After addition of 4 Orders, TotalOrders = 4,
  after removal of 2 Orders, TotalOrders = 2.</p>
  
  <p>When I run a program at some time it has to check whether TotalOrders has value other than 0.
  Please help me. plz plz</p>