You get two different effects depanding on where you declare the variable. If you declare it inside the block, then it is local to the block, and POOF! it is gone when that execution of the block completes. If you want the value to survive the block and be visible outside the block, then you need to declare it outside.
"JavaRanch, where the deer and the Certified play" - David O'Meara