package java.lang;

import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;

public class StringBuilder {
	private List<Character> string;

	public StringBuilder() {
		string = new ArrayList<Character>();
	}

	public StringBuilder(String s) {
		this();
		append(s);
	}

	public StringBuilder append(Character[] arr) {
		for (Character c : arr) {
			string.add(c);
		}
		return this;
	}

	public StringBuilder append(String s) {
		char[] c = s.toCharArray();
		Character[] ch = new Character[c.length];
		for (int i = 0; i < c.length; ++i) {
			ch[i] = c[i];
		}
		return append(ch);
	}

	public StringBuilder append(Object o) {
		return append(o.toString());
	}

	public StringBuilder append(boolean b) {
		return append(Boolean.valueOf(b));
	}

	public StringBuilder append(char c) {
		return append(Character.valueOf(c));
	}

	public StringBuilder append(int i) {
		return append(Integer.valueOf(i));
	}

	public StringBuilder append(long lng) {
		return append(Long.valueOf(lng));
	}

	public StringBuilder append(float f) {
		return append(Float.valueOf(f));
	}

	public StringBuilder append(double d) {
		return append(Double.valueOf(d));
	}

	public String toString() {
		char[] arr = new char[string.size()];
		for (int i = 0; i < arr.length; ++i) {
			arr[i] = string.get(i);
		}
		return new String(arr);
	}

	public int length() {
		return string.size();
	}
}
@@ -433,49 +433,21 @@
 end(
-String s) %7B%0A%09%09char%5B%5D c = s.toCharArray();
+char%5B%5D arr) %7B
 %0A%09%09C
@@ -476,17 +476,19 @@
 aracter%5B
-c
+arr
 .length%5D
@@ -511,17 +511,19 @@
  0; i %3C 
-c
+arr
 .length;
@@ -541,17 +541,19 @@
 ch%5Bi%5D = 
-c
+arr
 %5Bi%5D;%0A%09%09%7D
@@ -574,24 +574,103 @@
 nd(ch);%0A%09%7D%0A%0A
+%09public StringBuilder append(String s) %7B%0A%09%09return append(s.toCharArray());%0A%09%7D%0A%0A
 %09public Stri

Append char array in stringbuilder