public Variable[] findLocalArrays(){
  List<Variable> arrays=new ArrayList<Variable>();
  for (ListIterator<Variable> iterator=fLocalVariables.listIterator(fLocalVariables.size()); iterator.hasPrevious(); ) {
    Variable localVariable=iterator.previous();
    if (localVariable.isArray())     arrays.add(localVariable);
  }
  return arrays.toArray(new Variable[arrays.size()]);
}

public Variable [ ] findLocalArrays ( ) { List < Variable > arrays = new ArrayList < Variable > ( ) ; for ( ListIterator < Variable > iterator = fLocalVariables . listIterator ( fLocalVariables . size ( ) ) ; iterator . hasPrevious ( ) ; ) { Variable localVariable = iterator . previous ( ) ; if ( localVariable . isArray ( ) ) arrays . add ( localVariable ) ; } return arrays . toArray ( new Variable [ arrays . size ( ) ] ) ; }
returns all local arrays in the order that they appear .
