请问怎么把参数key和temp保存到rowData中去?紧急啊!!!
Object[][] rowData =null;
Enumeration en = prop.propertyNames();
while(en.hasMoreElements()) {
String key = (String) en.nextElement();
String temp = prop.getProperty (key);
     }

解决方案 »

  1.   


            Object[][] rowData = new Object[prop.size()][2];
            Enumeration en = prop.propertyNames();
            int i = 0;
            while(en.hasMoreElements())
            {
                String key = (String) en.nextElement();
                String temp = prop.getProperty(key);
                
                rowData[i][0] = key;
                rowData[i][1] = temp;
                i++;
            }
      

  2.   

    谢谢favorite7w 啊!分明天给,我也是这么做的,就是没有用到prop.size(),非常感谢!