Created
July 25, 2013 09:37
-
-
Save hendrikstill/6078275 to your computer and use it in GitHub Desktop.
Generic ArrayList to Array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArrayList<URL> allURLs = new ArrayList<URL>(); | |
//... | |
URL[] result = new URL[allURLs.size()]; | |
return new URLClassLoader(allURLs.toArray(result), getClass().getClassLoader()); | |
//Source EclipseFileManager.jave (jdt.compiler.tool) line 268 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment