Coding Tips (JavaScript/CSS/VBA/Win32)

Useful code snippets, tips and some Windows applications

Convert a Collection to Array

The following example converts an ArrayList into an array of strings.

	ArrayList al = new ArrayList();
	//Fill the array 
	...........

	String[] aStrings = (String[]) al.toArray(new String[0]);