Ankur kothari wrote:yup...initially i thought it can work that way here..through unboxing...but in K&B it isnt mentioned that wrappers are allowed...nor in moghuls book
you have got it wrong.
note these points
1> wrappers can be used in the switch expression. like switch( i ) where i is an Integer.
2> a wrapper can't be used in the case expression.
avi sinha