Java examples for Language Basics:float
Convert float Primitive Value to Float Object
public class Main { public static void main(String[] args) { float f = 1.5f; // w w w . j a v a 2 s. c om Float fObj = new Float(f); System.out.println(fObj); } }