Search:

Type: Posts; User: javapenguin

Search: Search took 0.26 seconds.

  1. Re: Creating array from generic type objects?

    ADTQueue<String> aBucket = new ADTQueue();

    Not even sure why it let you get away with the line above as you forget the generic parameter on the right side there too.

    Anyway, I think it's...
  2. Re: Creating array from generic type objects?

    Throwing numbers into a String array also may be problematic.
  3. Re: Creating array from generic type objects?

    If your class is a queue, it should probably be able to hold object itself without the help of an array.

    ADTQueue<String>[] buckets = new ADTQueue[10];

    Hmmm...that doesn't have the generic on...
Results 1 to 3 of 3