Results 1 to 3 of 3
Thread: about Arrays.asList source
- 04-13-2009, 04:24 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 2
- Rep Power
- 0
about Arrays.asList source
The source of Arrays.asList in jdk is as follow:
public static <T> List <T> asList(T... a) {
return new ArrayList <T>(a);
}
the question is that I can't find the constructor ArrayList <T>(T[]),
and when I put this code into eclipse,it prompts an error
The constructor ArrayList <T>(T[]) is undefined.
- 04-13-2009, 06:08 PM #2
Member
- Join Date
- Mar 2009
- Posts
- 2
- Rep Power
- 0
oh~I get it ,there is a inner class ArrayList<E> inside the Arrays class
- 04-13-2009, 07:12 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
If you have solve the problem, please mark the thread solved. Others can mess-up otherwise looking at your question.
Similar Threads
-
Java API source
By Mr.Beans in forum NetBeansReplies: 5Last Post: 04-10-2009, 04:02 AM -
Same source file but different source folders for different build configurations?
By m3anman in forum EclipseReplies: 0Last Post: 01-29-2009, 10:43 AM -
MavenJava - browse source code of all open source projects online
By jirkacelak in forum Java SoftwareReplies: 1Last Post: 11-28-2008, 06:27 PM -
Need a source code
By vissu007 in forum New To JavaReplies: 1Last Post: 07-05-2007, 07:08 PM -
GNU Source-highlight 2.7
By levent in forum Java SoftwareReplies: 0Last Post: 06-12-2007, 08:39 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks