Wednesday, 2 July 2014

append (double d)

public synchronized StringBuffer append(double d)
Appends the string representation of the double argument to this sequence.

class StringBufferAppendDouble{
 public static void main(String args[]){
  StringBuffer s1 = new StringBuffer("Value of s1 is ");
  double d = 10.01;
  s1.append(d);
  
  System.out.println(s1);
 }
}

Output
Value of s1 is 10.01




Prevoius                                                 Next                                                 Home

No comments:

Post a Comment