Here s the method...
public <E> E[] toArray(E[] e) { ....... }
Please help!
how do I tell the size of e so I can determine if I need to create a bigger array first or not before attempting to stuff it with elements?
Oh- and from what I can tell (google- java documentation- IDE error messages) generic arrays do not have a size() method.
I ll try the .length() method...
I can t pass the size to the method as I am writing a class that implements the Collections Interface- so it has to override the abstract Collections method:
public <E> E[] toArray(E[] a)
cannot modify a.length as it is final.
If you look at that year in history the US was involved in the Indian War at that time but that still doesn t explain that years reference? The only war history I could find was the Java Islamic Revolt against the Dutch colonist starting 1825 and continuing till 1830.
If you look at that year in history the US was involved in the Indian War at that time which is already referenced on the time-line- i.e. that still doesn t explain that years reference? The only war history I could find was the Java Islamic Revolt against the Dutch colonist starting 1825 and continuing till 1830 and doesn t have anything to do with the US. If your going to answer please review Yahoo Observes Memorial Day page with time-line; or don t waste time. thanks
I m looking for an example of Breadth First Search implemented in Java. Can anyone link me to a site?
Thanks.
P.S. I ve seen it in C and C++ ...really just need an example in Java.
No comments:
Post a Comment