Skip to content

Instantly share code, notes, and snippets.

View StringBuilderWrapper.java
public class StringBuilderWrapper implements CharSequence {
private StringBuilder sb;
public StringBuilderWrapper(String s) {
this.sb = new StringBuilder(s);
}
public int length() {
return sb.length();