java.lang.Float.valueOf(String s) java.lang.Float.valueOf(float f) java.lang.Integer.bitCount() java.lang.Float.valueOf(String s) package com.codingdict; import java.lang.*; public class FloatDemo { public static void main(String[] args) { Float f = new Float("9.5"); String str = "40.56"; /* returns a Float object holding the value represented by str */ System.out.println("Value = " + f.valueOf(str)); } } java.lang.Float.valueOf(float f) java.lang.Integer.bitCount()