Monday, February 20, 2012

delete character from String in java or android


public class Test{

    public static void main(String[] args) {

        StringBuilder sb = new StringBuilder();

        sb.append("Java Stringbuilder deleteCharAt");

        sb.deleteCharAt(5);

        System.out.println("StringBuilder :"+sb);
    }
}

No comments:

Post a Comment