Code example for Vector

Methods: toArray

0
import org.hyperic.hypclipse.plugin.IBuildEntry; 
 
public class BuildUtil { 
 
	public static IBuildEntry[] getBuildLibraries(IBuildEntry[] entries) { 
		Vector<IBuildEntry> temp = new Vector<IBuildEntry>(); 
		for (int i = 0; i < entries.length; i++) { 
			if (entries[i].getName().startsWith(IBuildEntry.JAR_PREFIX)) 
				temp.add(entries[i]); 
		} 
		return temp.toArray(new IBuildEntry[0]); 
	} 
 
}