class Envolventes {
  public static void main(String [] args) {
//Creacion de objetos envolventes o wrappers
     Byte obyte = new Byte((byte)0x32);
     Short oshort = new Short((short)128);
     Integer oint = new Integer(21000);
     Long olong = new Long(344334);
     Float ofloat = new Float(3.211234F);
     Double odouble = new Double(3.33E-99);
     Character ochar = new Character('b');
     Boolean oboolean = new Boolean(true);
//Conversion de cadena a nativo
     byte nbyte = Byte.parseByte("50");     
     short nshort = Short.parseShort("128");
     int nint = Integer.parseInt("21000");
     long nlong = Long.parseLong("344334");
     float nfloat = Float.parseFloat("3.211234F");
     double ndouble = Double.parseDouble("3.33E-99");
     boolean nboolean = Boolean.parseBoolean("true");
//leer valores de los objetos
     System.out.println( obyte.byteValue() == nbyte);
     System.out.println( oshort.shortValue() == nshort);
     System.out.println( oint.intValue() == nint);
     System.out.println( olong.longValue() == nlong);
     System.out.println( ofloat.floatValue() == nfloat);
     System.out.println( odouble.doubleValue() == ndouble);
     System.out.println( oboolean.booleanValue() == nboolean);
  }
}