KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Correspondig the following question: Java: Enum parameter in method I would like to know, how can I format the code to require enums generically. Foo.java public enum Foo { a(1), b(2); } Bar.java public class Bar { public Bar(generic enum); } Later on I'll have more enum classes like "foo", but you can still create bar containing any kind of enum class. I have "jdk1.6.0_20" by the way...
Tags (comma-separated)
Save Edits
Cancel