List lists = eidi.getSubjectByExamItem(xmId); eidi.close(); arrsubject=new String[lists.size()]; lists.toArray(arrsubject);