Java StringBuffer Examples

Java StringBuffer delete remove character or clear content Example

Want to learn quickly?
Try one of the many quizzes. More than Java 400 questions with detailed answers.

Add Comment

  • how does this works with StringBuffer in java 6

    public class Demo
    {
    public static void main(String[] args)
    {
    int x=4;
    StringBuffer sb=new StringBuffer(“..fazba”);
    sb.delete((x-3),(x-2));
    System.out.println(sb);
    }
    }

    what will be the output?? can anybody explain it???

Sponsors

Facebook Fans