non-working implementation of float and double.toString()

This commit is contained in:
Eric Scharff
2007-10-02 08:58:35 -06:00
parent 45dc118ab9
commit 243d62a952
3 changed files with 22 additions and 1 deletions

View File

@ -81,6 +81,15 @@ public class StringBuilder {
return append(String.valueOf(v));
}
public StringBuilder append(float v) {
return append(String.valueOf(v));
}
public StringBuilder append(double v) {
return append(String.valueOf(v));
}
public char charAt(int i) {
if (i < 0 || i >= length) {
throw new IndexOutOfBoundsException();