ArrayList al=new ArrayList();
  al.add("ok");
  al.add("fe");
  String [] o=(String [])al.toArray(new String[]{});