by Dinesh Thakur Category: array

StringBuffer deleteCharAt (int index): This method deletes the character at the specified position index from the string buffer. For example,

StringBuffer s1= new StringBuffer ("Helloo Java");


As a result, the character at the index 1 from the string buffer will be deleted and will now contain "Hello Java".

public class StringBufferdeleteCharAt

          public static void main(String[] args)
             StringBuffer s1 = new StringBuffer("Helloo Java");
             System.out.println("s1 : " + s1);

StringBuffer deleteCharAt() Method in Java Example

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.C.A, MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.

Related Articles