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:
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:
Comments
Post a Comment