String buf[][];
buf=new String[2][];
for(int i=0;i<2;i++) {
 buf[i]=new String[5];
 Vector two=one.elementAt(i);}

解决方案 »

  1.   

    String buf[][];
    buf=new String[2][];
    for(int i=0;i<2;i++) {
     buf[i]=new String[5];
     Vector two=one.elementAt(i);
     for(int j=0;j<5;j++) {
      buf[i][j]=(String)two.elementAt(j);
     }
    }
      

  2.   

    Vector one=new Vector();
    Vector two=new Vector();
    for(int i =0;i<2;i++){
       for(int j=0;j<5;j++){
        two=new Vector();
            Integer IntTemp=new Integer(j);
            String strResult=IntTemp.toString();
        two.addElement(strResult);
       }
    one.addElement(two);
    }
    Object s[]=one.toArray();
    Object s1[]=two.toArray(s);
      

  3.   

    楼主程序有问题。
    Vector one=new Vector();
    Vector two;
    for(int i =0;i<2;i++){
       for(int j=0;j<5;j++){
        two=new Vector(); <================这个要放在第二循环的外面。
    Integer IntTemp=new Integer(j);
    String strResult=IntTemp.toString();
        two.addElement(strResult);
       }
    one.addElement(two);
    }如下
    java.util.Vector one = new Vector();
    java.util.Vector two = null;
    for (int i = 0; i < 2; i++)
    {
    two = new Vector();
    for (int j = 0; j < 5; j++)
    {
    Integer IntTemp = new Integer(j);
    String strResult = IntTemp.toString();
    two.addElement(strResult);
    }
    one.addElement(two);
    }
    String[][] rs = new String[one.size()][];
    for (int i = 0; i < one.size(); i++)
    {
    java.util.Vector vect = (java.util.Vector) one.elementAt(i);
    rs[i] = new String[vect.size()];
    vect.copyInto(rs[i]);
    }
      

  4.   

    bluesmile979(笑着)
    那是想象的结果,是他要的效果