[course07]02 Wrapper classes
[course07]02 Wrapper classes
Integer class
// Constructs an Integer object from an int. (Boxing.)
Integer(int value)
//Returns the value of this Integer as an int. (Unboxing.)
int intValue()
//A constant equal to the minimum value represented by an int or Integer.
Integer.MIN_VALUE
//A constant equal to the maximum value represented by an int or Integer.
Integer.MAX_VALUE
Integer a = new Integer(10);
int b = a.intValue();
System.out.println(Integer.MIN_VALUE);
System.out.println(Integer.MAX_VALUE);Double class
Autoboxing and Unboxing
comparison of wrapper class objects
Last updated