<<< The Math.random method | Index | The Integer class >>> |
Constructors for the Integer and Double classes
Integer(int) Double(double)
Examples creating Integer and Double objects:
Integer quantityIntegerObject = new Integer(quantity); Double priceDoubleObject = new Double(price);
NOTE: In addition to the Integer and Double classes, all other primitive data types also have corresponding wrapper classes similar to Integer and Double.
<<< The Math.random method | Index | The Integer class >>> |