add misc methods to classpath

This commit is contained in:
Joel Dice
2007-09-13 20:19:44 -06:00
parent ce97b6eecb
commit 5e42158f4b
4 changed files with 22 additions and 0 deletions

View File

@ -12,6 +12,10 @@ public final class Integer extends Number {
this.value = value;
}
public Integer(String s) {
this.value = parseInt(s);
}
public static Integer valueOf(int value) {
return new Integer(value);
}