Mar 15, 2005 #1 M mabsito Newbie level 3 Joined Feb 22, 2005 Messages 4 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,304 Enumeration Type in Java Hello, can some one help and tell how to define a Type enumeration in Java 1.4 like this enum color (blue,red); Thanks
Enumeration Type in Java Hello, can some one help and tell how to define a Type enumeration in Java 1.4 like this enum color (blue,red); Thanks
Mar 22, 2005 #2 A asemnor Junior Member level 3 Joined Mar 8, 2005 Messages 27 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,509 Re: Enumeration Type in Java Try using interface.Like public interface color{ public int blue=0; public int green=1; //etc } After that just implement the interface
Re: Enumeration Type in Java Try using interface.Like public interface color{ public int blue=0; public int green=1; //etc } After that just implement the interface