Chris is right, that gets rid of the error, but I bet it is not what
bob is trying to accomplish.  Chris' solution will create a Java array
of 9 Vectors.

I have a couple of suggestions, here:
1) Don't ever use Vectors.  They are historical cruft.  Use List and
ArrayList
2) Don't mix generics and Java arrays.  It gets weird

I suspect that what bob wants is

import java.util.List;

public class Oracle {
        public static ListArticle> articles;
        public static void init(){
                articles = new ArrayList<Article>(9);
        }
}

... and you can leave the "9" out, because the ArrayList will grow as
needed...

-blake


On Aug 23, 1:56 pm, Chris <crehb...@gmail.com> wrote:
> > articles = new Vector<Article>[9];
>
> try articles = (Vector<Article>[]) new Vector[9];
>
> - C

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to