java.lang.Float.floatValue()


java.lang.Float.floatValue()

package com.codingdict;



import java.lang.*;



public class FloatDemo {



   public static void main(String[] args) {



      // returns the float value represented by this float object

      Float obj = new Float("19.36f");

      float f = obj.floatValue();

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



      obj = new Float("2.00");

      f = obj.floatValue();

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

   }

}