Search:

Type: Posts; User: angstrem

Search: Search took 0.09 seconds.

  1. Replies
    13
    Views
    1,380

    [SOLVED] Re: Question on Generics and collections

    Why methods tooevoegen() and remove() are not implemented? Their implementation must be one trivial line of code, if you look at the List API.
    Also, it would be nice to override toString method in...
  2. Replies
    13
    Views
    1,380

    [SOLVED] Re: Question on Generics and collections

    In your main method that you've submitted earlier, you construct Traject classes with constructors, that accept some arguments.
  3. Replies
    13
    Views
    1,380

    [SOLVED] Re: Question on Generics and collections

    Then all I can recommend is to use a collection like List to store all your output elements and then output them via iterating over the collection. Collections use generics.
  4. Replies
    13
    Views
    1,380

    [SOLVED] Re: Question on Generics and collections

    Then describe please, what the program precisely must do under the hood. Because your current formulation of problem is similar to describing a TV like a "moving picture": under that definition, even...
  5. Replies
    13
    Views
    1,380

    [SOLVED] Re: Question on Generics and collections

    System.out.println("Room 11 has H. DS as it's teacher ");
    System.out.println(" Felix De Vliegher follows basis");
    //And so on

    This will do exactly what you want.
  6. Replies
    13
    Views
    1,380

    [SOLVED] Re: Question on Generics and collections

    So you don't have to use your Traject, Cursist and Instructor classes? Then what's the task, precisely?
  7. Replies
    13
    Views
    1,380

    [SOLVED] Re: Question on Generics and collections

    If you don't know even syntax, you shouldn't bother yourself with generics. Go here and read from the very beginning.

    ---UPD---
    in fact, I can see no generics in the code.
Results 1 to 7 of 7