String Buffer Reset Java
public class StrinBufferResetExample
{
public static void main(String[] args)
{
StringBuffer sbf = new
StringBuffer("Hello World!");
System.out.println("StringBuffer content:
" + sbf) ;
sbf.delete(0, sbf.length());
System.out.println("StringBuffer content
after reset:" + sbf);
}
}
No comments:
Post a Comment