public
synchronized StringBuffer append(float f)
Appends
the string representation of the float argument to this sequence.
public class StringBufferAppendFloat { public static void main(String args[]){ StringBuffer s1 = new StringBuffer("Value of s1 is "); float f = 10.01f; s1.append(f); System.out.println(s1); } }
Output
Value of s1 is 10.01
No comments:
Post a Comment