Thursday 3 July 2014

append (long lng)

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




Prevoius                                                 Next                                                 Home

No comments:

Post a Comment