If you need to retain the information in that variable between multiple loops, make it static. Otherwise, don't.