java.lang.Number.doubleValue() java.lang.Number.byteValue() java.lang.Number.floatValue() java.lang.Number.doubleValue() package com.codingdict; public class NumberDemo { public static void main(String[] args) { // get a number as integer Integer x = new Integer(123456); // get a number as float Float y = new Float(9876f); // print their value as double System.out.println("x as integer :" + x + ", x as double:" + x.doubleValue()); System.out.println("y as float::" + y + ", y as double:" + y.doubleValue()); } } java.lang.Number.byteValue() java.lang.Number.floatValue()