public class MainClass{ public static void main(String[] argv){ Integer i2 = new Integer(42); byte b = i2.byteValue(); short s = i2.shortValue(); double d = i2.doubleValue(); Float f2 = new Float(3.14f); s = f2.shortValue(); System.out.println(s); } }
3