if(list==null? ||? list.size()==0){
Return? null
}
Object []? Array? =? New? object[list . size()];
for(int? I = 0; I< list. size (); i++){
array[i]=? list . get(I);
Return? Array; ?