I have created an array of type String. Now I am trying to cast it as
a generic type. How do I do that?

public class ArrayList<T> implements ListADT<T>, Iterable<T>
{
   protected final String [] DEFAULT_CAPACITY = new String [10];

 protected T[] list;


 public ArrayList()
   {
      //rear = 0;
      list = (T[])(new Object[DEFAULT_CAPACITY]);
   }

--

You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.


Reply via email to