This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
It does nothing useful. It declares a local variable "x" with an initial value, and then that variable goes immediately out of scope when the code reaches the } at the end of the block. It doesn't change the real static variable "x" at all. If it were up to me, I'd have the compiler issue a warning when it saw something like this. [ September 04, 2002: Message edited by: Ron Newman ]
Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Joined: Mar 22, 2002
Whoops! Ron is right... I overlooked the int declaration inside the block. My bad.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com