Skip to main content

Convert Java Float Object to String Object Example

CODING:
public class JavaFloatToStringExample
 {
  public static void main(String[] args)
{
    Float fObj = new Float(10.25);
    String str = fObj.toString();
    System.out.println("Float converted to String as " + str);
  }
}

OUTPUT:

Float converted to String as 10.25



Comments