Convert Float Object to String Object - Java Language Basics

Java examples for Language Basics:float

Description

Convert Float Object to String Object

Demo Code


 
public class Main {
 
  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);
  }//from   w  w  w  .j  a va2 s  .  c om
}

Result


Related Tutorials