java.lang.Double.intValue()


java.lang.Double.intValue()

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 int */

      Double obj = new Double("32.90");

      int i = obj.intValue();

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



      obj = new Double("30.0");

      i = obj.intValue();

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

   }

}