java.lang.Double.floatValue()


java.lang.Double.floatValue()

package com.codingdict;



import java.lang.*;



public class DoubleDemo {



   public static void main(String[] args) {



      // returns the float value of this Double object

      Double obj = new Double("5.60");

      float f = obj.floatValue();

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



      obj = new Double("32");

      f = obj.floatValue();

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

   }

}