Converting A Java Array To A ColdFusion Array

<!---
	Create a string and then split it into an array using
	the String::Split() method. This will give us an array,
	but NOT a traditional ColdFusion array. This is a read-
	only array (well, from CF's perspective).
--->
<cfset arrGirls = ToString(
	"Maria Bello,Christina Cox,Meg Ryan"
	).Split( "," )
	/>
 
<!--- Create a ColdFuion array. --->
<cfset arrCFGirls = ArrayNew( 1 ) />
 
<!--- Loop over array to copy values. --->
<cfloop
	index="intGirl"
	from="1"
	to="#ArrayLen( arrGirls )#"
	step="1">
 
	<!--- Copy value. --->
	<cfset arrCFGirls[ intGirl ] = arrGirls[ intGirl ] />
 
</cfloop>

For Cut-and-Paste