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