java lang Float Class - java.lang.Float Class in Java
Float Class in Java
The Float class wraps the value of primitive data type float into Float object. An object of type Float contains a single field whose type is float. In other words the wrapper classes create objects for primitive data types. The wrapper classes are Boolean, Byte, Character, Short, Integer, Float, Long and Double.
Java Float class provides several useful methods for converting a float to a String and a String to a float, as well as other constants and methods.
java.lang.Float Class Example
java.lang.Float Class Example 2
Following Java Float class example you can learn how to use static methods of Java Float Class. If you use static methods you need not to create the class instance. You can call static methods using the class name as reference.
java.lang.Float Class Example 3