projects
/
IRC.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added test script
[IRC.git]
/
Robust
/
src
/
ClassLibrary
/
String.java
1
public class String {
2
char string[];
3
4
public String(char string[]) {
5
this.string=string;
6
}
7
8
public static String valueOf(Object o) {
9
return o.toString();
10
}
11
12
/* public static String valueOf(int x) {
13
int length=0;
14
int tmp=x;
15
do {
16
tmp=tmp/10;
17
length=length+1;
18
} while(tmp!=0);
19
char chararray[]=new chararray[length];
20
do {
21
length--;
22
chararray[length]=x%10;
23
x=x/10;
24
} while (length!=0);
25
return new String(chararray);
26
}*/
27
28
}