added test script
[IRC.git] / Robust / src / ClassLibrary / String.java
index 35d865bed41543286ec2a40560b503ab0aa90d6b..8f448a7b9f2eb3d95af594a26fdbadde66d49c89 100644 (file)
@@ -4,4 +4,25 @@ public class String {
     public String(char string[]) {
        this.string=string;
     }
+
+    public static String valueOf(Object o) {
+       return o.toString();
+    }
+
+    /*    public static String valueOf(int x) {
+         int length=0;
+         int tmp=x;
+         do {
+         tmp=tmp/10;
+         length=length+1;
+         } while(tmp!=0);
+         char chararray[]=new chararray[length];
+         do {
+         length--;
+         chararray[length]=x%10;
+         x=x/10;
+         } while (length!=0);
+         return new String(chararray);
+         }*/
+
 }