package com.iluwatar;

public enum StarType {

	SUN, RED_GIANT, WHITE_DWARF, SUPERNOVA, DEAD;

	@Override
	public String toString() {
		String s = "";
		switch (this) {
		case RED_GIANT:
			s = "red giant";
			break;
		case SUN:
			s = "sun";
			break;
		case SUPERNOVA:
			s = "supernova";
			break;
		case WHITE_DWARF:
			s = "white dwarf";
			break;
		case DEAD:
			s = "dead star";
			break;
		default:
			break;
		}
		return s;
	}

}

@@ -48,16 +48,23 @@
 %0D%0A%0D%0A%09SUN
+(%22sun%22)
 , RED_GI
@@ -70,389 +70,251 @@
 IANT
-, WHITE_DWARF, SUPERNOVA, DEAD;%0D%0A%0D%0A%09@Override%0D%0A%09public String toString() %7B%0D%0A%09%09String s = %22%22;%0D%0A%09%09switch (this) %7B%0D%0A%09%09case RED_GIANT:%0D%0A%09%09%09s = %22red giant%22;%0D%0A%09%09%09break;%0D%0A%09%09case SUN:%0D%0A%09%09%09s = %22sun%22;%0D%0A%09%09%09break;%0D%0A%09%09case SUPERNOVA:%0D%0A%09%09%09s = %22supernova%22;%0D%0A%09%09%09break;%0D%0A%09%09case WHITE_DWARF:%0D%0A%09%09%09s = %22white dwarf%22;%0D%0A%09%09%09break;%0D%0A%09%09case DEAD:%0D%0A%09%09%09s = %22dead star%22;%0D%0A%09%09%09break;%0D%0A%09%09default:%0D%0A%09%09%09break;%0D%0A%09%09%7D
+(%22red giant%22), WHITE_DWARF(%22white dwarf%22), SUPERNOVA(%22supernova%22), DEAD(%22dead star%22), UNDEFINED(%22%22);%0D%0A%0D%0A    private String title;%0D%0A%0D%0A    StarType(String title) %7B%0D%0A        this.title = title;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A%09public String toString() %7B
 %0D%0A%09%09
@@ -324,17 +324,19 @@
 urn 
-s
+title
 ;%0D%0A%09%7D%0D%0A
-%0D%0A
 %7D%0D%0A

Update StarType enum in memento pattern.