2014-08-17 14:42:10 +03:00

32 lines
347 B
Java

package com.iluwatar;
public enum Size {
SMALL,
NORMAL,
LARGE;
@Override
public String toString() {
String s = "";
switch (this) {
case LARGE:
s = "large";
break;
case NORMAL:
s = "normal";
break;
case SMALL:
s = "small";
break;
default:
break;
}
return s;
}
}