Search:

Type: Posts; User: profit7

Search: Search took 0.09 seconds.

  1. Replies
    13
    Views
    1,388

    [SOLVED] Re: Question on Generics and collections

    This is what I have so far:

    public class Traject {
    public Traject(String traject) {
    setTraject(traject);
    }

    private String traject;

    public String...
  2. Replies
    13
    Views
    1,388

    [SOLVED] Re: Question on Generics and collections

    This is exactly what my problem is, I wrote the program without generics and it works fine, I can't use the generics! this what I have for Traject, but in my Main Class it still shows an error...
    ...
  3. Replies
    13
    Views
    1,388

    [SOLVED] Re: Question on Generics and collections

    thank you for your time! but i'm afraid that this is all what i have:
    we got the code you can see above and we were asked to complete the program using, generics, inheritance, collections... to get...
  4. Replies
    13
    Views
    1,388

    [SOLVED] Re: Question on Generics and collections

    this is not the point, we HAVE to create classes and use collections, generics and so on to make the code work.
    using println() is not correct... it's a program we have to complete and the answers...
  5. Replies
    13
    Views
    1,388

    [SOLVED] Re: Question on Generics and collections

    to get this output from the code:

    Room 11 has H. DS as it's teacher
    Felix De Vliegher follows basis
    Koen Vanhoutte follows java
    Serge Vereecke follows java
    Freddy Himpe follows .net

    Room...
  6. Replies
    13
    Views
    1,388

    [SOLVED] Re: Question on Generics and collections

    by not knowing the syntax i meant that it's not clear to, not that i don't know how it works... the reason why there is no generics in the codes is because this is our test we have to USE generics to...
  7. Replies
    13
    Views
    1,388

    [SOLVED] Question on Generics and collections

    Hello everyone!
    I'm new to java and I got a test today and kind of failed to make it, I was hoping that someone could explain it to me because I still don't get how to use Generic collections.......
Results 1 to 7 of 7