protected Object convertArray(Object arr){
  final int size=Array.getLength(arr);
  ArrayList list=new ArrayList(size);
  for (int i=0; i < size; i++) {
    list.add(Array.get(arr,i));
  }
  return list;
}

protected Object convertArray ( Object arr ) { final int size = Array . getLength ( arr ) ; ArrayList list = new ArrayList ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { list . add ( Array . get ( arr , i ) ) ; } return list ; }
converts an array to a java . util . list .
