convert int, float and double to string - Android java.lang

Android examples for java.lang:Float

Description

convert int, float and double to string

Demo Code


public class Main{

    public static String convert(int i) {
        return String.valueOf(i);
    }/*from   w  w  w . j a  v a2  s.com*/
    public static String convert(float i) {
        return String.valueOf(i);
    }
    public static String convert(double i) {
        return String.valueOf(i);
    }

}

Related Tutorials