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