Search:

Type: Posts; User: GregBrannon

Search: Search took 0.14 seconds.

  1. Replies
    9
    Views
    875

    Re: Creating generic version of methods

    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...
  2. Replies
    9
    Views
    875

    Re: Creating generic version of methods

    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...
  3. Replies
    9
    Views
    875

    Re: Creating generic version of methods

    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...
  4. Replies
    9
    Views
    875

    Re: Creating generic version of methods

    Once again, your enhanced for() loop is incorrect. Review the required structure and fix it.
  5. Replies
    9
    Views
    875

    Re: Creating generic version of methods

    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.
Results 1 to 5 of 5