I think this article covers what you're trying to do, but I didn't work through it to verify. If this article is not quite right, you might try searching 'java generic enum' and mining those...
Type: Posts; User: GregBrannon
I think this article covers what you're trying to do, but I didn't work through it to verify. If this article is not quite right, you might try searching 'java generic enum' and mining those...
I'm not sure what you're trying to do. Can you post a full program - even a broken one - focused on simply doing the one thing you're trying to do that could be used to understand what the objective...
Compare your statement:
for ( type t : type.values( ) )
to the documentation for the enhanced for() loop.
Hints: Is 'type' really a Type? Using proper capitalization per Java's naming...
Once again, your enhanced for() loop is incorrect. Review the required structure and fix it.
Well, your enhanced for() loop is not correct, so start there. I'm not sure that'll be the only fix, but maybe that'll get you moving forward.