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.
Try casting 0 to a short. ie a = (short)0 or initializing it on the same line that you declared a.
Short only has 2 constructors:
Short(short value) and Short(String s). So either cast it to a short or pass it as a String if you wish to use this wrapper class.
I realize you just gave a simple example, but try to get in the habit of using meaningful names for variables. It helps self-document your code. [ April 12, 2006: Message edited by: Rusty Shackleford ]
"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra