Convert float to string
public class Main {
public static void main(String[] args) {
Float fObj = new Float(10.25);
String str = fObj.toString();
System.out.println(str);
}
}
public class Main {
public static void main(String[] args) throws Exception {
String str = Float.toString(0.3F);
}
}