Implemented proper enum toString() behavior and an enum test. it should

work, but it fails with the current build.
This commit is contained in:
Eric Scharff
2007-09-26 12:59:18 -06:00
parent c7567b4081
commit a88f7c8473
3 changed files with 44 additions and 1 deletions

View File

@ -35,4 +35,8 @@ public abstract class Enum<E extends Enum<E>> {
public int ordinal() {
return ordinal;
}
public String toString() {
return name;
}
}