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 is better if you use API for reference. This is always good to understand these about wrapper classes. difference between .decode() .parseXXX(); .valueOf() and try some arithmetic operators on .MIN_VALUE , .MAX_VALUE of each wrapper. and also including POSITIVE_INFINITY and NEGATIVE_INFINITY, NAN regards Binu
Joined: Jul 30, 2001
I am not finding any API info on wrapper classes. I found only wrap(int),wrap(byte) etc. Can anyone send me the url for that pl. Thanks
I haven't heard of a method called wrap() -- where did you find it? Wrapper classes are Boolean, Byte, Character, Short, Integer, Long, Float, Double. These are all in the package java.lang . Note these all begin with capital letters, to distinguish them from primitive types that would otherwise have the same names. [ August 23, 2002: Message edited by: Ron Newman ]