java.lang.Double.byteValue()


java.lang.Double.byteValue()

package com.codingdict;



import java.lang.*;



public class DoubleDemo {



   public static void main(String[] args) {



      /* returns the double value represented by this object converted 

         to type byte */

      Double obj = new Double("20");

      byte b = obj.byteValue();

      System.out.println("Value = " + b);



      obj = new Double("30.95");

      b = obj.byteValue();

      System.out.println("Value = " + b);

   }

}